Skip to content

Commit

Permalink
fix: time
Browse files Browse the repository at this point in the history
  • Loading branch information
seanghay committed Dec 14, 2023
1 parent 8ef4313 commit 2fff8bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node.js Package
name: test

on: push

Expand Down
4 changes: 2 additions & 2 deletions index.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ test("should create formdata", t => {
c: null,
d: undefined,
}, date);
t.is(data.get("req_time"), '19700101070000')
t.true(data.has("req_time"))
t.is(data.get("merchant_id"), "1")
t.is(data.get("hash"), 'yVxHUIQLg8cnRK6T9NnWfP28RKypeNkRZ+HEP/rlmfFw0B9Sc0q2jiilUki9H0NGTJGo2WdsPFJO4XC31w1Nsw==');
t.true(data.has("hash"));
t.is(data.get("a"), 'a-value');
t.is(data.get("b"), 'b-value');
t.false(data.has('c'))
Expand Down

0 comments on commit 2fff8bb

Please sign in to comment.