Skip to content

Commit 3608883

Browse files
Techn1xstefanpenner
authored andcommitted
Remove useless assertions
1 parent 41bdcb8 commit 3608883

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/unit/utils/regexp-test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ test('version reg ex matches expected strings', function(assert) {
1313
});
1414

1515
test('version extended reg ex matches expected strings', function(assert) {
16-
assert.expect(6);
16+
assert.expect(4);
1717

1818
assert.ok('2.0.1-alpha'.match(versionExtendedRegExp), 'Matches expected pattern.');
1919
assert.ok('2.20.1-alpha.15'.match(versionExtendedRegExp), 'Matches expected pattern.');
20-
assert.ok(!'1.1.1-alpha.'.match(versionExtendedRegExp), 'Does not match hanging period.');
21-
assert.ok(!'1.1.1-alpha.abc'.match(versionExtendedRegExp), 'Does not match letters after extended tag period.');
2220
assert.ok(!'a.b.c-alpha.15'.match(versionExtendedRegExp), 'Does not match letters.');
2321
assert.ok(!'git12sha'.match(versionExtendedRegExp), 'Does not match sha.');
2422
});

0 commit comments

Comments
 (0)