test(custom-request): update test case, avoid failed (#2954)
* test(custom-request): update test case, avoid failed * fix: case
This commit is contained in:
parent
93bf86d931
commit
3220173e83
@ -7,23 +7,3 @@ exports[`actions send currentRecord.data 1`] = `
|
||||
"username": "testname",
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`actions send currentUser with association data 1`] = `
|
||||
{
|
||||
"a": [
|
||||
"member",
|
||||
"root",
|
||||
"admin",
|
||||
],
|
||||
"b": [
|
||||
"{{t("Member")}}",
|
||||
"{{t("Root")}}",
|
||||
"{{t("Admin")}}",
|
||||
],
|
||||
"c": [
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
],
|
||||
}
|
||||
`;
|
||||
|
@ -154,7 +154,9 @@ describe('actions', () => {
|
||||
filterByTk: 'currentUser-with-association-data',
|
||||
});
|
||||
expect(res.status).toBe(200);
|
||||
expect(params).toMatchSnapshot();
|
||||
expect(expect.arrayContaining(params.a)).toMatchObject(['root', 'member', 'admin']);
|
||||
expect(expect.arrayContaining(params.b)).toMatchObject(['{{t("Member")}}', '{{t("Root")}}', '{{t("Admin")}}']);
|
||||
expect(expect.arrayContaining(params.c)).toMatchObject([1, 1, 1]);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user