Skip to content

Commit

Permalink
style: lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Feb 24, 2024
1 parent 8326b22 commit 25d4e6b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default class Build extends BaseCommand {
hooks: {
onBuildStarting: this.app.rcFile.unstable_assembler?.onBuildStarting,
onBuildCompleted: this.app.rcFile.unstable_assembler?.onBuildCompleted,
}
},
})

/**
Expand Down
2 changes: 1 addition & 1 deletion commands/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default class Serve extends BaseCommand {
hooks: {
onDevServerStarted: this.app.rcFile.unstable_assembler?.onDevServerStarted,
onSourceFileChanged: this.app.rcFile.unstable_assembler?.onSourceFileChanged,
}
},
})

/**
Expand Down
8 changes: 4 additions & 4 deletions tests/commands/build.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,15 +384,15 @@ test.group('Build command', (group) => {
async () => ({
default: async () => {
assert.isTrue(true)
}
})
},
}),
],
onBuildStarting: [
async () => ({
default: async () => {
assert.isTrue(true)
}
})
},
}),
],
}

Expand Down
13 changes: 8 additions & 5 deletions tests/commands/serve.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,15 @@ test.group('Serve command', () => {
await sleep(600)
})

test('correctly pass hooks to the devserver', async ({ assert, fs, cleanup }) => {
test('correctly pass hooks to the DevServer', async ({ assert, fs, cleanup }) => {
assert.plan(1)

await fs.create('bin/server.js', `
await fs.create(
'bin/server.js',
`
process.send({ isAdonisJS: true, environment: 'web' });
`)
`
)
await fs.create(
'node_modules/ts-node/package.json',
JSON.stringify({
Expand All @@ -281,8 +284,8 @@ test.group('Serve command', () => {
ace.app.rcFile.unstable_assembler = {
onDevServerStarted: [
async () => ({
default: async () => assert.isTrue(true)
})
default: async () => assert.isTrue(true),
}),
],
}

Expand Down

0 comments on commit 25d4e6b

Please sign in to comment.