Skip to content

Commit

Permalink
make multiple plugin test more concrete
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson committed May 14, 2024
1 parent 44af64d commit 0b0e600
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ describe('plugins', function () {
expect(expect('').testing).to.equal('successful');
});

it('multiple plugins', function () {
expect(function () {
use(plugin).use(anotherPlugin);
}).to.not.throw();
it('multiple plugins apply all changes', function () {
const chai = use(plugin).use(anotherPlugin);

expect(chai.expect('').testing).to.equal('successful');
expect(chai.expect('').moreTesting).to.equal('more success');
});

it("doesn't crash when there's a bad plugin", function () {
expect(() => {
Expand Down

0 comments on commit 0b0e600

Please sign in to comment.