Skip to content

Commit

Permalink
Add test if ''npm oudated' returns nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Jahn committed Nov 27, 2015
1 parent e14a847 commit 8a09ba7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/run.js
Expand Up @@ -148,6 +148,21 @@ describe("run()", function () {
});
});

describe("noop", function () {
before(setupOutdatedModules(undefined));
afterEach(tearDown);

it("should be emitted if npm outdated returns nothing", function (done) {
reporter = function (emitter) {
emitter.on("noop", function (options) {
expect(options).to.be.undefined; // eslint-disable-line
});
};

run({ cwd: process.cwd(), reporter: reporter }, done);
});
});

describe("outdated", function () {
describe("if outdated modules were found", function () {
before(setupOutdatedModules(outdatedModules));
Expand Down

0 comments on commit 8a09ba7

Please sign in to comment.