added typescript regec section

This commit is contained in:
LosslessBot
2016-05-01 13:32:04 +02:00
parent 0a6724d80e
commit 2db9ba50d2
6 changed files with 39 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -36,4 +36,16 @@ describe("smartstring",function(){
})
})
})
describe(".typescript",function(){
describe(".referenceRegex",function(){
it("should match reference paths",function(){
smartstring.typescript.regexReferencePath.test("/// <reference path=\"\" />")
.should.be.true();
smartstring.typescript.regexReferencePath.test("/// <reference path='' />")
.should.be.true();
smartstring.typescript.regexReferencePath.test("/// <referencepath=\"\" />")
.should.be.false();
})
})
})
});