chore: update tests

This commit is contained in:
LuanRT
2022-05-05 04:12:41 -03:00
parent 16bb879689
commit 4fd7371cf3

View File

@@ -49,7 +49,7 @@ async function performTests() {
const n_token = new NToken(Constants.n_scramble_sc, Constants.original_ntoken).transform();
assert(n_token == Constants.expected_ntoken, `should transform n token into ${Constants.expected_ntoken}`, n_token);
const transformed_url = new Signature(Constants.test_url, { sig_decipher_sc: Constants.sig_decipher_sc }).decipher();
const transformed_url = new Signature(Constants.test_url, Constants.sig_decipher_sc).decipher();
assert(transformed_url == Constants.expected_url, `should decipher signature`, transformed_url);
if (failed_tests_count > 0)