
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
benderjs-yui
Advanced tools
Adapter for YUI3 testing framework for Bender.js.
npm install benderjs-yui
Add benderjs-yui to the plugins array in the bender.js configuration file:
var config = {
applications: {...}
browsers: [...],
plugins: ['benderjs-yui'], // load the plugin
tests: {...}
};
module.exports = config;
Set yui as a framework for entire project or a specific tests group:
var config = {
applications: {...}
browsers: [...],
framework: 'yui', // use for entire project
plugins: ['benderjs-yui'],
tests: {
Foo: {
basePath: '',
framework: 'yui' // use for a specific tests group
paths: [...]
}
}
};
module.exports = config;
To run a test case use bender.test API:
bender.test({
'test foo': function () {
bender.assert.areEqual(5, 5);
bender.assert.areNotEqual(5, 6);
},
'test bar': function () {...}
});
Some of YUI namespaces were exposed in bender namespace, at the moment you can use:
bender.Y -> Ybender.assert -> Y.Assertbender.objectAssert -> Y.ObjectAssertbender.arrayAssert -> Y.ArrayAssertYou may create multiple nested suites.
To do so, in test suite passed to bender.test create an object containing property suite set to true.
bender.test({
'test foo': function () {
bender.assert.areEqual(5, 5);
bender.assert.areNotEqual(5, 6);
},
'test suite': {
suite: true,
'test bar': function() {
bender.assert.areNotEqual('bar','baz');
},
'test bar2': function() {
bender.assert.areNotEqual('bar2','baz');
},
'test nested suite': {
suite: true,
'test baz': function() {
bender.assert.areEqual('baz','baz');
}
}
}
});
If you provide setUp or tearDown functions, they will be fired for all tests in the suite, but not for the tests in nested suites.
MIT, for license details see: LICENSE.md.
FAQs
Adapter for YUI3 testing framework for Bender.js
The npm package benderjs-yui receives a total of 121 weekly downloads. As such, benderjs-yui popularity was classified as not popular.
We found that benderjs-yui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.