Skip to content

Commit

Permalink
chore: remove type module and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bersilius committed Aug 16, 2021
1 parent 24ceed8 commit c3ec99f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
7 changes: 1 addition & 6 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{
"plugins": ["@babel/plugin-proposal-object-rest-spread"],
"presets": ["@babel/preset-env"],
"env": {
"test": {
"plugins": ["@istanbuljs/nyc-config-babel"]
}
}
"presets": ["@babel/preset-env"]
}
1 change: 1 addition & 0 deletions .nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"include": ["src/**/*.js"],
"exclude": ["src/**/*.spec.js"],
"reporter": ["lcov", "text-summary"],
"require": ["@babel/register"],
"sourceMap": false,
"instrument": true,
"cache": true,
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "1.0.0",
"description": "",
"main": "src/index.js",
"type": "module",
"devDependencies": {
"@babel/cli": "^7.14.8",
"@babel/core": "^7.15.0",
Expand All @@ -12,7 +11,6 @@
"@babel/polyfill": "^7.12.1",
"@babel/preset-env": "^7.15.0",
"@babel/register": "^7.15.3",
"@istanbuljs/nyc-config-babel": "^3.0.0",
"babel-loader": "^8.2.2",
"chai": "^4.3.4",
"coveralls": "^3.1.1",
Expand Down
8 changes: 6 additions & 2 deletions src/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import { expect } from 'chai'
import { testable } from './index.js'

describe('do', () => {
it('testable', () => {
expect(testable()).to.eql({ success: true })
it('testable', done => {
const expectedResult = { success: true }
const result = testable()

expect(result).to.eql(expectedResult)
done()
})
})

0 comments on commit c3ec99f

Please sign in to comment.