Skip to content

Commit

Permalink
Fix cs issue in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierstoval committed Oct 15, 2024
1 parent f3f0cee commit 47f0c61
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/lib/Actions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,18 @@ describe(
const baseItem = {
field: 'value'
};
const callback = (item?: object | undefined): boolean => {
const callback = (item?: unknown): void => {
called = true;
// @ts-ignore
item.field = 'newValue';
return called;
};
const action = new CallbackAction('', null, callback);

expect(action.call(baseItem)).toBe(true);
expect(called).toBe(false);

action.call(baseItem);

expect(called).toBe(true);
expect(baseItem.field).toBe('newValue');
});
},
Expand Down
14 changes: 14 additions & 0 deletions test_cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { load_config } from './node_modules/@sveltejs/kit/src/core/config/index.js';
import { all } from './node_modules/@sveltejs/kit/src/core/sync/sync.js';

(async () => {
console.info('Testing.');

const conf = await load_config();

const manifest_data = all(conf, 'development');

const routes = manifest_data.manifest_data.routes;

console.info(routes);
})();

0 comments on commit 47f0c61

Please sign in to comment.