Use ! in test
This commit is contained in:
parent
d981a85239
commit
104590e34d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue