Skip to content

Commit

Permalink
Deterministic testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-barbulescu committed Oct 21, 2022
1 parent 0dd6c1e commit d3d90ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions __tests__/__snapshots__/basic.js.snap
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`instance is unchanged 1`] = `
Array [
"length",
"name",
[
"arguments",
"caller",
"prototype",
"indent",
"length",
"name",
"prototype",
]
`;

exports[`is unchanged 1`] = `
Array [
[
"length",
"prototype",
"name",
"prototype",
]
`;
4 changes: 2 additions & 2 deletions __tests__/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ it('exists', () => {
});

it('is unchanged', () => {
expect(Object.getOwnPropertyNames(StrOP)).toMatchSnapshot();
expect(Object.getOwnPropertyNames(StrOP).sort()).toMatchSnapshot();
});

describe('instance', () => {
Expand All @@ -32,7 +32,7 @@ describe('instance', () => {
});

it('is unchanged', () => {
expect(Object.getOwnPropertyNames(new StrOP('Basic'))).toMatchSnapshot();
expect(Object.getOwnPropertyNames(new StrOP('Basic')).sort()).toMatchSnapshot();
});

it('tags strings', () => {
Expand Down

0 comments on commit d3d90ae

Please sign in to comment.