Skip to content

Commit

Permalink
fix: updated fancy-mocha
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 25, 2018
1 parent 165afa2 commit d78793e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 25 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Jeff Dickey @jdxcode",
"bugs": "https:/dxcli/dev-test/issues",
"dependencies": {
"fancy-mocha": "^0.1.0",
"fancy-mocha": "^0.3.1",
"lodash": "^4.17.4"
},
"devDependencies": {
Expand All @@ -18,6 +18,7 @@
"@types/chai-as-promised": "^7.1.0",
"@types/lodash": "^4.14.96",
"@types/mocha": "^2.2.47",
"@types/nock": "^9.1.2",
"@types/node": "^9.3.0",
"@types/read-pkg": "^3.0.0",
"chai": "^4.1.2",
Expand Down
20 changes: 0 additions & 20 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,6 @@ os.forEach(os => {
})
})

describe('mock env', () => {
test()
.env({foo: 'bar'})
.it('gets env', () => {
expect(process.env).to.deep.equal({foo: 'bar'})
})

test()
.env({foo: 'baz'})
.it('gets env from it', () => {
expect(process.env).to.deep.equal({foo: 'baz'})
})

test()
.env({})
.it('clears env', () => {
expect(process.env).to.deep.equal({})
})
})

describe('chai-as-promised', () => {
it('eventually expects', async () => {
await expect(Promise.resolve('foo')).to.eventually.equal('foo')
Expand Down
14 changes: 10 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,13 @@
version "2.2.47"
resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-2.2.47.tgz#30bbd880834d4af0f609025f282a69b8d4458f06"

"@types/node@^9.3.0":
"@types/nock@^9.1.2":
version "9.1.2"
resolved "https://registry.yarnpkg.com/@types/nock/-/nock-9.1.2.tgz#0515b27e3f6bbc11834d22508ad02e2921dd376a"
dependencies:
"@types/node" "*"

"@types/node@*", "@types/node@^9.3.0":
version "9.3.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-9.3.0.tgz#3a129cda7c4e5df2409702626892cb4b96546dd5"

Expand Down Expand Up @@ -1710,9 +1716,9 @@ extsprintf@^1.2.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f"

fancy-mocha@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/fancy-mocha/-/fancy-mocha-0.1.0.tgz#cff12fbff4578121b596febd06fdac5ea467929a"
fancy-mocha@^0.3.1:
version "0.3.1"
resolved "https://registry.yarnpkg.com/fancy-mocha/-/fancy-mocha-0.3.1.tgz#2848e4644b3732c06392cfc2fdb2d4d5d4112423"
dependencies:
lodash "^4.17.4"
stdout-stderr "^0.1.4"
Expand Down

0 comments on commit d78793e

Please sign in to comment.