Skip to content

Commit

Permalink
Flip switch on this test
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdz committed Apr 7, 2020
1 parent 6f64666 commit 34d014e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/gatsby/src/redux/__tests__/run-sift.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ if (!process.env.GATSBY_DB_NODES || process.env.GATSBY_DB_NODES === `redux`) {
expect(results[0].deep.flat.search.chain).toEqual(300)
})

it(`ignores elemMatch`, () => {
it(`supports elemMatch`, () => {
const filter = {
elemList: {
$elemMatch: { foo: { $eq: `baz` } },
Expand All @@ -459,7 +459,8 @@ if (!process.env.GATSBY_DB_NODES || process.env.GATSBY_DB_NODES === `redux`) {
new Map()
)

expect(result).toBe(undefined)
expect(result).not.toBe(undefined)
expect(result.length).toBe(2)
})
})
} else {
Expand Down

0 comments on commit 34d014e

Please sign in to comment.