1
0
mirror of synced 2025-12-23 21:07:12 -05:00

Update tests/unit/products.js

Co-authored-by: James M. Greene <JamesMGreene@github.com>
This commit is contained in:
Grace Park
2021-06-23 11:20:26 -07:00
committed by GitHub
parent 9956bf1250
commit cb69acf071

View File

@@ -41,6 +41,7 @@ describe('mobile-only products nav', () => {
describe('products middleware', () => {
jest.setTimeout(5 * 60 * 1000)
test('adds res.context.activeProducts array', async () => {
const products = await getJSON('/en?json=activeProducts')
expect(Array.isArray(products)).toBe(true)