Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Dec 4, 2023
1 parent 69b3cf0 commit 35275a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`is not Nx project angular builders Angular < 14.0.0 should throw an Error 1`] = `
"❌ Your project uses Angular < 14.0.0. Storybook 7.0 for Angular requires Angular 14.0.0 or higher.
Please upgrade your Angular version to at least version 14.0.0 to use Storybook 7.0 in your project."
exports[`is not Nx project angular builders Angular < 15.0.0 should throw an Error 1`] = `
"❌ Your project uses Angular < 15.0.0. Storybook 8.0 for Angular requires Angular 15.0.0 or higher.
Please upgrade your Angular version to at least version 15.0.0 to use Storybook 8.0 in your project."
`;
8 changes: 4 additions & 4 deletions code/lib/cli/src/automigrate/fixes/angular-builders.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ describe('is not Nx project', () => {
});
});

describe('Angular < 14.0.0', () => {
describe('Angular < 15.0.0', () => {
const packageManager = {
getPackageVersion: (packageName: string) => {
if (packageName === '@angular/core') {
return Promise.resolve('12.0.0');
return Promise.resolve('14.0.0');
}

return null;
Expand All @@ -86,11 +86,11 @@ describe('is not Nx project', () => {
});
});

describe('Angular >= 14.0.0', () => {
describe('Angular >= 16.0.0', () => {
const packageManager = {
getPackageVersion: (packageName) => {
if (packageName === '@angular/core') {
return Promise.resolve('15.0.0');
return Promise.resolve('16.0.0');
}

return null;
Expand Down

0 comments on commit 35275a9

Please sign in to comment.