Skip to content

Commit

Permalink
updated migration template files (#4814)
Browse files Browse the repository at this point in the history
  • Loading branch information
daneryl authored Jul 4, 2022
1 parent e9eb492 commit 34909b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/api/migrations/templates/fixtures.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import db from 'api/utils/testing_db';

export default {
export const fixtures = {
entities: [{ title: 'test_doc' }]
};
4 changes: 2 additions & 2 deletions app/api/migrations/templates/migration.spec.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import testingDB from 'api/utils/testing_db';
import migration from '../index.js';
import fixtures from './fixtures.js';
import { fixtures } from './fixtures.js';

describe('migration {{ name }}', () => {
beforeEach(async () => {
spyOn(process.stdout, 'write');
await testingDB.clearAllAndLoad(fixtures);
await testingDB.setupFixturesAndContext(fixtures);
});

afterAll(async () => {
Expand Down

0 comments on commit 34909b9

Please sign in to comment.