Skip to content

Commit

Permalink
Remove abc-environment completely
Browse files Browse the repository at this point in the history
  • Loading branch information
queicherius committed Oct 4, 2018
1 parent f4b0e39 commit b4c3a7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "./src/index.js",
"scripts": {
"test": "jest --runInBand --forceExit",
"lint": "abc lint"
"lint": "standard"
},
"author": "[email protected]",
"license": "MIT",
Expand All @@ -28,8 +28,9 @@
"url-parse": "^1.1.3"
},
"devDependencies": {
"abc-environment": "^2.0.0",
"babel-plugin-rewire": "^1.2.0",
"jest": "^23.6.0",
"redis": "^2.6.2"
"redis": "^2.6.2",
"standard": "^12.0.1"
}
}
7 changes: 3 additions & 4 deletions tests/endpoints/account.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-env jest */
const sinon = require('sinon')
const { mockClient, fetchMock } = require('../mocks/client.mock')
const Module = require('../../src/endpoints/account')

Expand Down Expand Up @@ -399,9 +398,9 @@ describe('endpoints > account', () => {
})

it('test /v2/account .blob()', async () => {
const spy = sinon.spy()
Module.__set__('accountBlob', spy)
const blobMock = jest.fn()
Module.__set__('accountBlob', blobMock)
endpoint.blob()
expect(spy.called).toEqual(true)
expect(blobMock.mock.calls.length).toEqual(1)
})
})

0 comments on commit b4c3a7e

Please sign in to comment.