Skip to content

Commit a5d040b

Browse files
committed
Use assertArrayIncludes
1 parent 8cdf7a0 commit a5d040b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/serpapi_test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ describe("getAccount", {
9898
api_key: SERPAPI_TEST_KEY,
9999
timeout: 10000,
100100
});
101-
assertEquals(Object.keys(info).sort(), [
101+
assertArrayIncludes(Object.keys(info).sort(), [
102102
"account_email",
103103
"account_id",
104104
"account_rate_limit_per_hour",
@@ -122,7 +122,7 @@ describe("getAccount", {
122122
const info = await new Promise<Awaited<ReturnType<typeof getAccount>>>(
123123
(res) => getAccount({ api_key: SERPAPI_TEST_KEY, timeout: 10000 }, res),
124124
);
125-
assertEquals(Object.keys(info).sort(), [
125+
assertArrayIncludes(Object.keys(info).sort(), [
126126
"account_email",
127127
"account_id",
128128
"account_rate_limit_per_hour",
@@ -145,7 +145,7 @@ describe("getAccount", {
145145
}, async () => {
146146
config.api_key = SERPAPI_TEST_KEY;
147147
const info = await getAccount();
148-
assertEquals(Object.keys(info).sort(), [
148+
assertArrayIncludes(Object.keys(info).sort(), [
149149
"account_email",
150150
"account_id",
151151
"account_rate_limit_per_hour",

0 commit comments

Comments
 (0)