Skip to content

Commit

Permalink
test(eval): add more cashtags
Browse files Browse the repository at this point in the history
  • Loading branch information
aldy505 committed Jan 7, 2024
1 parent 2f94561 commit 034e612
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/eval.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@ test("should not be able to evaluate ASII without dollar sign", async () => {
assert.equal(result, "Tidak boleh mengakses ASII");
});

test("should not be able to evaluate more than 3 cashtags", async () => {
test("should not be able to evaluate more than 5 cashtags", async () => {
let result;
try {
result = await safeEval("$ASII + $BBCA + $GGRM + $TLKM", [resolveStocks]);
result = await safeEval("$ASII + $BBCA + $GGRM + $TLKM + $AAPL + $MSFT", [resolveStocks]);
} catch (error) {
result = error;
}
Expand Down

0 comments on commit 034e612

Please sign in to comment.