build(aio): freeze lockfile when installing example dependencies (#19616)

PR Close #19616
This commit is contained in:
Peter Bacon Darwin 2017-10-09 11:18:51 +01:00 committed by Chuck Jazdzewski
parent 437e803f27
commit ad7e781a18
2 changed files with 3 additions and 3 deletions

View File

@ -96,7 +96,7 @@ class NgPackagesInstaller {
* Yarn will also delete the local marker file for us.
*/
restoreNpmDependencies() {
this._installDeps('--check-files');
this._installDeps('--freeze-lockfile', '--check-files');
}
// Protected helpers

View File

@ -144,10 +144,10 @@ describe('NgPackagesInstaller', () => {
});
describe('restoreNpmDependencies()', () => {
it('should run `yarn install --check-files` in the specified directory', () => {
it('should run `yarn install` in the specified directory, with the correct options', () => {
spyOn(installer, '_installDeps');
installer.restoreNpmDependencies();
expect(installer._installDeps).toHaveBeenCalledWith('--check-files');
expect(installer._installDeps).toHaveBeenCalledWith('--freeze-lockfile', '--check-files');
});
});