import test from 'ava'; import { Error, Types } from 'mongoose'; import { UserInputError } from 'apollo-server-micro'; import { Factory } from '../../../database/factory'; import * as testUtils from '../../../test/utils'; import { RecipeCollection } from '../collection-model'; import { Recipe } from '../../recipe'; import { User } from '../../../app/user'; import { SmartRecipeCollection } from '../smart-collection-model'; import { RecipeFilterAttribute, RecipeFilterAction } from '../filters'; test.before(testUtils.setupDB); test.afterEach.always(testUtils.cleanupDB); test.after.always(testUtils.tearDownDB); test.todo('test each attribute filter seperately');