Skip to content

Commit 47e9c7b

Browse files
Broccohansl
authored andcommitted
test: Verify new project specifies a CLI version
1 parent 74eb059 commit 47e9c7b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/acceptance/new.spec.ts

+8
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,12 @@ describe('Acceptance: ng new', function () {
166166
.then(done, done.fail);
167167
});
168168

169+
it('should specify a version of the CLI', (done) => {
170+
return ng(['new', 'FooApp', '--skip-install', '--skip-git']).then(() => {
171+
const pkgJson = JSON.parse(fs.readFileSync('package.json', 'utf8'));
172+
expect(pkgJson.devDependencies['@angular/cli']).toMatch(/\d+\.\d+\.\d+/);
173+
})
174+
.then(done, done.fail);
175+
})
176+
169177
});

0 commit comments

Comments
 (0)