Use ! in test

This commit is contained in:
RMidhunSuresh 2021-11-29 11:48:05 +05:30
parent d981a85239
commit 104590e34d

View file

@ -270,7 +270,7 @@ export function tests() {
"Login token removed from item": (assert) => {
const str = "main http://localhost:3000/src/main.js:55\n<anonymous> http://localhost:3000/?loginToken=secret:26";
const result = filterLoginToken(str);
const index = result?.search("secret");
const index = result!.search("secret");
assert.equal(index, -1);
}
}