ci: Fix tests failing on MySQL (no-changelog) (#7208)

https://github.com/n8n-io/n8n/actions/runs/6229338666/job/16907667212
This commit is contained in:
Iván Ovejero 2023-09-19 15:42:39 +02:00 committed by GitHub
parent 3a474552b2
commit 28598ed1a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,8 +38,8 @@ describe('GET /credentials', () => {
response.body.data.forEach(validateCredential);
const savedIds = [id1, id2];
const returnedIds = response.body.data.map((c) => c.id);
const savedIds = [id1, id2].sort();
const returnedIds = response.body.data.map((c) => c.id).sort();
expect(savedIds).toEqual(returnedIds);
});