Fix test that is failing the build (#5551)

This commit is contained in:
Antonio Davi Macedo Coelho de Castro
2019-05-01 15:29:53 -07:00
committed by Diamond Lewis
parent 9594c4b59f
commit 8f0e7f3bcc

View File

@@ -200,8 +200,12 @@ describe('schemas', () => {
}; };
expect( expect(
dd( dd(
response.data.results.sort((s1, s2) => s1.className > s2.className), response.data.results.sort((s1, s2) => {
expected.results.sort((s1, s2) => s1.className > s2.className) return s1.className > s2.className ? 1 : -1;
}),
expected.results.sort((s1, s2) => {
return s1.className > s2.className ? 1 : -1;
})
) )
).toEqual(undefined); ).toEqual(undefined);
done(); done();
@@ -235,10 +239,12 @@ describe('schemas', () => {
}; };
expect( expect(
dd( dd(
response.data.results.sort( response.data.results.sort((s1, s2) => {
(s1, s2) => s1.className > s2.className return s1.className > s2.className ? 1 : -1;
), }),
expected.results.sort((s1, s2) => s1.className > s2.className) expected.results.sort((s1, s2) => {
return s1.className > s2.className ? 1 : -1;
})
) )
).toEqual(undefined); ).toEqual(undefined);
done(); done();