all files / modules/extensions/__tests__/ middleware-test.js

100% Statements 10/10
100% Branches 0/0
100% Functions 5/5
100% Lines 10/10
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18   18×     18× 18× 18×          
const expect = require("expect");
const mach = require("../../index");
const middleware = require("../../middleware");
 
describe("extensions/middleware", function () {
    beforeEach(function () {
        mach.extend(require("../middleware"));
    });
 
    Object.keys(middleware).forEach(function (property) {
        describe(`mach.${property}`, function () {
            it("is a function", function () {
                expect(mach[property]).toBeA("function");
            });
        });
    });
});