Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rolljee committed Nov 28, 2023
1 parent cc4dc9c commit 83535e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/util/extractFields.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe("util/extractFields", () => {
it("Should extract fields recursively", () => {
const result = extractFields(document);

should(result).match(["foo", "bar.a", "bar.b"]);
should(result).match(["bar.a", "bar.b", "foo"]);
});

it("Should ignore requested fields", () => {
Expand All @@ -32,9 +32,9 @@ describe("util/extractFields", () => {
const result = extractFields(document, { alsoExtractValues: true });

should(result).match([
{ key: "foo", value: "valueFoo" },
{ key: "bar.a", value: "valueBarA" },
{ key: "bar.b", value: "valueBarB" },
{ key: "foo", value: "valueFoo" },
]);
});
});

0 comments on commit 83535e9

Please sign in to comment.