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 2905069559
commit 6225fedcb8
2 changed files with 3 additions and 3 deletions

View File

@ -128,7 +128,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

@ -194,10 +194,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');
});
});