Remove test for unused utility function

This commit is contained in:
Simon Ho 2015-07-28 17:45:38 -07:00
parent 68dc1d821f
commit fee103d9d7
1 changed files with 0 additions and 20 deletions

View File

@ -508,23 +508,3 @@ describe('util.hasRegExpFlags', function() {
}); });
}); });
}); });
describe('util.getRegExpExpression', function() {
context('with a regex string', function() {
it('should return the expression without flags', function() {
utils.getRegExpExpression('^regex$/abc').should.equal('^regex$');
});
});
context('with a regex literal', function() {
it('should return the expression without flags', function() {
utils.hasRegExpFlags(/^regex$/igm).should.be.ok;
});
});
context('with a regex object', function() {
it('should return the expression without flags', function() {
utils.hasRegExpFlags(new RegExp(/^regex$/igm)).should.be.ok;
});
});
});