Skip to content

Commit

Permalink
Fixes for printer test
Browse files Browse the repository at this point in the history
  • Loading branch information
NickChittle committed Mar 21, 2024
1 parent f643318 commit cdf5a89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/firestore/pretty-print.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("prettyIndexString", () => {
},
false,
),
).to.equal("\u001b[36m(collectionB)\u001b[39m -- (foo,ASCENDING) (bar,DESCENDING) ");
).to.contain("(foo,ASCENDING) (bar,DESCENDING) ");
});

it("should correctly print a contains type Index", () => {
Expand All @@ -34,7 +34,7 @@ describe("prettyIndexString", () => {
},
false,
),
).to.equal("\u001b[36m(collectionB)\u001b[39m -- (foo,ASCENDING) (baz,CONTAINS) ");
).to.contain("(foo,ASCENDING) (baz,CONTAINS) ");
});

it("should correctly print a vector type Index", () => {
Expand All @@ -47,7 +47,7 @@ describe("prettyIndexString", () => {
},
false,
),
).to.equal("\u001b[36m(collectionB)\u001b[39m -- (foo,VECTOR<100>) ");
).to.contain("(foo,VECTOR<100>) ");
});

it("should correctly print a vector type Index with other fields", () => {
Expand All @@ -63,6 +63,6 @@ describe("prettyIndexString", () => {
},
false,
),
).to.equal("\u001b[36m(collectionB)\u001b[39m -- (foo,ASCENDING) (bar,VECTOR<200>) ");
).to.contain("(foo,ASCENDING) (bar,VECTOR<200>) ");
});
});

0 comments on commit cdf5a89

Please sign in to comment.