mirror of https://github.com/zulip/zulip.git
billing: Add node test for is_in_array.
This commit is contained in:
parent
2547d4ea07
commit
9e9bd2456f
|
@ -0,0 +1,10 @@
|
|||
set_global('$', global.make_zjquery());
|
||||
set_global('page_params', {});
|
||||
|
||||
zrequire('helpers', "js/billing/helpers");
|
||||
|
||||
run_test("is_in_array", () => {
|
||||
var good_houses_array = ["Gryffindor", "Hufflepuff", "Ravenclaw"];
|
||||
assert.equal(helpers.is_in_array("Hufflepuff", good_houses_array), true);
|
||||
assert.equal(helpers.is_in_array("Slytherin", good_houses_array), false);
|
||||
});
|
Loading…
Reference in New Issue