Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bc7ae0b

Browse files
clydinalan-agius4
authored andcommittedJul 30, 2020
fix(@schematics/schematics): await expect result in full schematic test
(cherry picked from commit 56c5bce)
1 parent d570949 commit bc7ae0b

File tree

1 file changed

+2
-2
lines changed
  • packages/schematics/schematics/schematic/files/src/my-full-schematic

1 file changed

+2
-2
lines changed
 

‎packages/schematics/schematics/schematic/files/src/my-full-schematic/index_spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ const collectionPath = path.join(__dirname, '../collection.json');
88

99

1010
describe('my-full-schematic', () => {
11-
it('requires required option', () => {
11+
it('requires required option', async () => {
1212
// We test that
1313
const runner = new SchematicTestRunner('schematics', collectionPath);
14-
expectAsync(runner.runSchematicAsync('my-full-schematic', {}, Tree.empty()).toPromise()).toBeRejected();
14+
await expectAsync(runner.runSchematicAsync('my-full-schematic', {}, Tree.empty()).toPromise()).toBeRejected();
1515
});
1616

1717
it('works', async () => {

0 commit comments

Comments
 (0)
Please sign in to comment.