Not able to call moviedao

got a passed result but console.log shows null return from
moviedao function call not sure what to do next

Determining test suites to run… Setup Mongo Connection

PASS test/ projection.test.js

Projection

✓ Can perform a country search for one country (111ms)

✓ Can perform a country search for three countries (94ms)

console.log test/projection.test.js:11

[ ‘Kosovo’ ]

console.log test/projection.test.js:12

console.log test/projection.test.js:19

[ ‘Russia’, ‘Japan’, ‘Mexico’ ]

console.log test/projection.test.js:20

Test Suites: 1 passed , 1 total

Tests: 2 passed , 2 total

Snapshots: 0 total

Code that ran test above

import MoviesDAO from “…/src/dao/moviesDAO”

describe(“Projection”, async () => {
beforeAll(async () => {
await MoviesDAO.injectDB(global.mflixClient)
})

test(“Can perform a country search for one country”, async () => {
const kosovoList = [“Kosovo”]
const movies = await MoviesDAO.getMoviesByCountry(kosovoList)
console.log(kosovoList)
console.log(movies)
})

test(“Can perform a country search for three countries”, async () => {
const countries = [“Russia”, “Japan”, “Mexico”]
const movies = await MoviesDAO.getMoviesByCountry(countries)
expect(countries).toContain(“Mexico”)
console.log(countries)
console.log(movies)
movies.map(movie => {
const movieKeys = Object.keys(movie).sort()
const expectedKeys = ["_id", “title”]
expect(movieKeys).toEqual(expectedKeys)
expect(movie).not.toBeNull()

})

})
})