Skip to content

Commit

Permalink
fix(@schematics/schematics): await expect result in full schematic test
Browse files Browse the repository at this point in the history
(cherry picked from commit 56c5bce)
  • Loading branch information
clydin authored and alan-agius4 committed Jul 30, 2020
1 parent d570949 commit bc7ae0b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ const collectionPath = path.join(__dirname, '../collection.json');


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

it('works', async () => {
Expand Down

0 comments on commit bc7ae0b

Please sign in to comment.