Skip to content

Commit

Permalink
test: declare type OttomanServiceOptions for options
Browse files Browse the repository at this point in the history
This would ensure stricter type checking
  • Loading branch information
bwgjoseph committed Jun 30, 2021
1 parent 28dd4c4 commit 076488f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down Expand Up @@ -128,7 +128,7 @@ describe('Feathers Ottoman Service', () => {
await initOttoman();
await removeDocuments();

const options = {
const options: OttomanServiceOptions = {
Model: getModel('posts'),
ottoman: {
lean: true,
Expand Down

0 comments on commit 076488f

Please sign in to comment.