Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cressie176 committed Jan 27, 2024
1 parent c3f770b commit a49335a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions test/TestFilby.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ module.exports = class TestFilby extends Filby {
}

async wipe() {
await this.#deleteMigrations();
await this.#resetDatabase();
return Promise.all([
await this.#deleteMigrations(),
await this.#resetDatabase(),
]);
}

async #resetDatabase() {
Expand Down
2 changes: 1 addition & 1 deletion test/dsl.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ describe('DSL', () => {
describe('Drop Projection', () => {

it('should reject operation when not permitted', async (t) => {
const testConfig = op.set(config, 'migrations.0', { path: 'test/migrations', permissions: ['ADD_ENTITY', 'ADD_PROJECTION'] })
const testConfig = op.set(config, 'migrations.0', { path: 'test/migrations', permissions: ['ADD_ENTITY', 'ADD_PROJECTION'] });
await withFilby(testConfig, async () => {
await rejects(() => filby.applyYaml(t.name, ADD_ENTITY, ADD_PROJECTION, DROP_PROJECTION), (err) => {
eq(err.message, "001.should-reject-operation-when-not-permitted.yaml: Operation 'DROP_PROJECTION' is not permitted");
Expand Down

0 comments on commit a49335a

Please sign in to comment.