Skip to content

Commit f332e47

Browse files
yharaskrikDominikPieper
authored andcommitted
test(in-memory-db): update test for new version of nx
1 parent c1b9af3 commit f332e47

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/in-memory-db/src/schematics/nest-add/index.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ describe('nest add function', () => {
2828
runner = new SchematicTestRunner('schematics', collectionPath);
2929
});
3030

31-
it('should add package to module', () => {
32-
const ngAddTree = runner.runSchematic('nest-add', '', tree);
31+
it('should add package to module', async (done) => {
32+
const ngAddTree = await runner.runSchematicAsync('nest-add', '', tree).toPromise();
3333
const module = ngAddTree.readContent('/src/app.module.ts');
3434
expect(module).toMatchSnapshot();
35+
36+
done();
3537
});
3638
});

0 commit comments

Comments
 (0)