Skip to content

Commit

Permalink
fix(adapter-commons): Support non-default import to ease use with ESM…
Browse files Browse the repository at this point in the history
… projects
  • Loading branch information
FossPrime committed Apr 11, 2023
1 parent a9d826a commit d06f2cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/adapter-tests/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AdapterTestName } from './declarations'
import methodTests from './methods'
import syntaxTests from './syntax'

const adapterTests = (testNames: AdapterTestName[]) => {
export const adapterTests = (testNames: AdapterTestName[]) => {
return (app: any, errors: any, serviceName: any, idProp = 'id') => {
if (!serviceName) {
throw new Error('You must pass a service name')
Expand All @@ -30,7 +30,9 @@ const adapterTests = (testNames: AdapterTestName[]) => {
after(() => {
testNames.forEach((name) => {
if (!allTests.includes(name)) {
console.error(`WARNING: '${name}' test is not part of the test suite`)
console.error(
`WARNING: '${name}' test is not part of the test suite`
)
}
})
if (skippedTests.length) {
Expand Down

0 comments on commit d06f2cf

Please sign in to comment.