Skip to content

Commit

Permalink
Merge pull request #4102 from SukkaW/style-async-func-space
Browse files Browse the repository at this point in the history
style: space for asyncArrow
  • Loading branch information
segayuu committed Feb 8, 2020
2 parents ff54170 + 2c80b5e commit 3824b59
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 3824b59

Please sign in to comment.