Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
use @stamp/it instead
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Apr 30, 2017
1 parent b116559 commit 65383c1
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ cache: yarn
node_js:
- '7'
- '6'
#- '4'
- '4'
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"emitter"
],
"devDependencies": {
"@stamp/it": "^0.2.0",
"babel-cli": "^6.23.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-env": "^1.2.0",
Expand All @@ -31,15 +32,14 @@
"eslint-config-xo": "^0.18.1",
"mocha": "^3.3.0",
"sinon": "^2.1.0",
"stampit": "^3.1.2",
"unexpected": "^10.27.0",
"unexpected-sinon": "^10.7.1"
},
"engines": {
"node": ">=4"
},
"peerDependencies": {
"stampit": "^3.0.0"
"@stamp/it": "^0.2.0"
},
"scripts": {
"pretest": "eslint src/ test/",
Expand Down
2 changes: 1 addition & 1 deletion src/eventemittable.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {EventEmitter} from 'events';
import stampit from 'stampit';
import stampit from '@stamp/it';

// https://github.com/stampit-org/stampit/blob/master/advanced-examples/event-emitter.js
export default stampit()
Expand Down
7 changes: 5 additions & 2 deletions test/eventemittable.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {EventEmitter} from 'events';
import unexpected from 'unexpected';
import usinon from 'unexpected-sinon';
import sinon from 'sinon';
import stampit from 'stampit';
import stampit from '@stamp/it';

import EventEmittable from '../src/eventemittable';

Expand Down Expand Up @@ -172,7 +172,10 @@ describe('EventEmittable', function () {
});
});

it('should throw if max listeners exceeded', function () {
it('should emit a warning if max listeners exceeded', function () {
if (!process.emitWarning) {
this.skip();
}
const ee = EventEmittable();
sbx.stub(process, 'emitWarning');
ee.setMaxListeners(2);
Expand Down
36 changes: 32 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,38 @@
# yarn lockfile v1


"@stamp/compose@^0.1.5":
version "0.1.5"
resolved "https://registry.yarnpkg.com/@stamp/compose/-/compose-0.1.5.tgz#6b180d83403aaa5cbbc7c9e1210d8be98a97166d"
dependencies:
"@stamp/core" "^0.1.2"
"@stamp/is" "^0.1.2"

"@stamp/core@^0.1.2":
version "0.1.2"
resolved "https://registry.yarnpkg.com/@stamp/core/-/core-0.1.2.tgz#cd7d1e174fa9bb91bfd93cd8a7f2e69beaa3f14b"
dependencies:
"@stamp/is" "^0.1.2"

"@stamp/is@^0.1.2":
version "0.1.2"
resolved "https://registry.yarnpkg.com/@stamp/is/-/is-0.1.2.tgz#5a97ed8e8285f2930ec09846f5107a82856d77e0"

"@stamp/it@^0.2.0":
version "0.2.0"
resolved "https://registry.yarnpkg.com/@stamp/it/-/it-0.2.0.tgz#10089e0b879000accdfe1be3e0492c7bc4143acc"
dependencies:
"@stamp/compose" "^0.1.5"
"@stamp/core" "^0.1.2"
"@stamp/is" "^0.1.2"
"@stamp/shortcut" "^0.4.0"

"@stamp/shortcut@^0.4.0":
version "0.4.0"
resolved "https://registry.yarnpkg.com/@stamp/shortcut/-/shortcut-0.4.0.tgz#e3c06a2baea1985da9a0dabaa55402a1d522a886"
dependencies:
"@stamp/compose" "^0.1.5"

abbrev@1:
version "1.1.0"
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.0.tgz#d0554c2256636e2f56e7c2e5ad183f859428d81f"
Expand Down Expand Up @@ -2174,10 +2206,6 @@ sshpk@^1.7.0:
jsbn "~0.1.0"
tweetnacl "~0.14.0"

stampit@^3.1.2:
version "3.1.2"
resolved "https://registry.yarnpkg.com/stampit/-/stampit-3.1.2.tgz#8bd956b2f1ccbdb1ed2bec4af4fce4a0120a0388"

string-width@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3"
Expand Down

0 comments on commit 65383c1

Please sign in to comment.