mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-31 14:41:39 +01:00
Use ! in test
This commit is contained in:
parent
d981a85239
commit
104590e34d
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user