Skip to content

Commit

Permalink
test: fix prelease CLI E2E check
Browse files Browse the repository at this point in the history
  • Loading branch information
clydin authored and alexeagle committed May 30, 2019
1 parent 3b46107 commit 6ec0991
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/legacy-cli/e2e/utils/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ export function useNg4() {

export async function isPrereleaseCli() {
const angularCliPkgJson = JSON.parse(await readFile('node_modules/@angular/cli/package.json'));
const pre = prerelease(angularCliPkgJson.version);

return prerelease(angularCliPkgJson.version).length > 0;
return pre && pre.length > 0;
}

0 comments on commit 6ec0991

Please sign in to comment.