Skip to content

Commit

Permalink
New tests added
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jun 27, 2020
1 parent 9e0bb8c commit 8308eb3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/base/auth.js
Expand Up @@ -32,4 +32,17 @@ describe("#toTokensM()", function() {
}
});
});

it("should handle edge cases", () => {
let result;

result = yonius.toTokensM(undefined);
assert.deepStrictEqual(result, {});

result = yonius.toTokensM(null);
assert.deepStrictEqual(result, {});

result = yonius.toTokensM("error");
assert.deepStrictEqual(result, {});
});
});

0 comments on commit 8308eb3

Please sign in to comment.