Skip to content

Commit

Permalink
chore(e2e): run format
Browse files Browse the repository at this point in the history
  • Loading branch information
EdouardDem committed Apr 26, 2024
1 parent 43030c8 commit 9905760
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
3 changes: 2 additions & 1 deletion packages/e2e/spec/entrypoint.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ import {
} from './hooks/index.js';
import {
excludeSomeCollections,
includeSomeCollections, noSnapshot,
includeSomeCollections,
noSnapshot,
} from './exclude-include/index.js';

jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
Expand Down
17 changes: 9 additions & 8 deletions packages/e2e/spec/exclude-include/no-snapshot.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
Context,
debug,
} from '../helpers/index.js';
import { Context, debug } from '../helpers/index.js';
import Path from 'path';
import fs from 'fs-extra';

Expand Down Expand Up @@ -29,7 +26,10 @@ export const noSnapshot = (context: Context) => {

it('should not diff schema from Directus', async () => {
// Init sync client
const sync = await context.getSync('sources/one-item-per-collection', false);
const sync = await context.getSync(
'sources/one-item-per-collection',
false,
);

// --------------------------------------------------------------------
// Pull the content from Directus
Expand All @@ -39,12 +39,14 @@ export const noSnapshot = (context: Context) => {
// Check that the snapshot was ignored
expect(output).toContain(debug('Snapshot is disabled'));
expect(output).not.toContain(debug('[snapshot] No changes to apply'));

});

it('should not diff schema from Directus', async () => {
// Init sync client
const sync = await context.getSync('sources/one-item-per-collection', false);
const sync = await context.getSync(
'sources/one-item-per-collection',
false,
);

// --------------------------------------------------------------------
// Pull the content from Directus
Expand All @@ -54,6 +56,5 @@ export const noSnapshot = (context: Context) => {
// Check that the snapshot was ignored
expect(output).toContain(debug('Snapshot is disabled'));
expect(output).not.toContain(debug('[snapshot] No changes to apply'));

});
};

0 comments on commit 9905760

Please sign in to comment.