Closed jimmed closed 8 years ago
So:
I propose replacing the outermost describe in each test suite with a describeMethod, which does something like:
describe
describeMethod
natives.capture() function describeMethod (methodName, suiteCallback) { describe(methodName, function () { describe('from bundle', function () { describe('with native methods', function () { suiteCallback(require('../dist/')[methodName]) }) describe('without native methods', function () { beforeEach(natives.override) afterEach(natives.restore) }) }) describe('from source', function () { // ... and again, but imported from ../src }) }) }
So:
I propose replacing the outermost
describe
in each test suite with adescribeMethod
, which does something like: