Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: space for asyncArrow #4102

Merged
merged 1 commit into from
Feb 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions test/scripts/console/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('publish', () => {
const now = Date.now();
let clock;

before(async() => {
before(async () => {
clock = useFakeTimers(now);

await mkdirs(hexo.base_dir);
Expand Down Expand Up @@ -44,7 +44,7 @@ describe('publish', () => {
layout: 'draft'
}));

it('slug', async() => {
it('slug', async () => {
const draftPath = join(hexo.source_dir, '_drafts', 'Hello-World.md');
const path = join(hexo.source_dir, '_posts', 'Hello-World.md');
const date = moment(now);
Expand All @@ -70,7 +70,7 @@ describe('publish', () => {
await unlink(path);
});

it('layout', async() => {
it('layout', async () => {
const path = join(hexo.source_dir, '_posts', 'Hello-World.md');
const date = moment(now);

Expand All @@ -92,7 +92,7 @@ describe('publish', () => {
await unlink(path);
});

it('rename if target existed', async() => {
it('rename if target existed', async () => {
const path = join(hexo.source_dir, '_posts', 'Hello-World-1.md');

await post.create({
Expand All @@ -111,7 +111,7 @@ describe('publish', () => {
]);
});

it('replace existing target', async() => {
it('replace existing target', async () => {
const path = join(hexo.source_dir, '_posts', 'Hello-World.md');

await post.create({
Expand Down