Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit df32fc6

Browse files
committed
fixup! chore(build): fix version placeholder matching
1 parent 6883eb4 commit df32fc6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/e2e/tests/version.spec.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ describe('angular.version', function() {
3737
expect(version.then(get('codeName'))).not.toMatch(/NG_VERSION_/);
3838
});
3939

40-
it('should have `full` === `"major.minor.dot"`', function() {
40+
it('\'s `full` property should start with `"major.minor.dot"`', function() {
4141
expect(version.then(validate)).toBe(true);
4242

4343
function validate(ver) {
44+
// We test for "start with", because `full` is not always equal to `"major.minor.dot"`.
45+
// Possible formats: `1.5.8`, `1.5.0-rc.2`, `1.5.9-build.4949`, `1.5.9-local+sha.859348c`
4446
return ver.full.indexOf([ver.major, ver.minor, ver.dot].join('.')) === 0;
4547
}
4648
});

0 commit comments

Comments
 (0)