From 076488f456a004d8c0e6360a7c16e0ecad9d75eb Mon Sep 17 00:00:00 2001 From: bwgjoseph Date: Wed, 30 Jun 2021 22:02:57 +0800 Subject: [PATCH] test: declare type OttomanServiceOptions for options This would ensure stricter type checking --- test/index.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/index.test.ts b/test/index.test.ts index 67c7a74..587247e 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -5,7 +5,7 @@ import assert from 'assert'; import { getDefaultInstance, getModel, Ottoman, Schema, SearchConsistency, ModelOptions, } from 'ottoman'; -import { Service } from '../src/index'; +import { OttomanServiceOptions, Service } from '../src/index'; import customTestSuite from './methods.test'; const testSuite = adapterTests([ @@ -128,7 +128,7 @@ describe('Feathers Ottoman Service', () => { await initOttoman(); await removeDocuments(); - const options = { + const options: OttomanServiceOptions = { Model: getModel('posts'), ottoman: { lean: true,