Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
A basic bdd framework to work with node so that I can learn a bit of javascript and node. Adds a method on to all objects to test using should(). It can test callbacks and events
npm Jody
run Jody <file_name>
or Create specs in ./spec and then: run Jody
var describe = require('Jody').describe;
describe("New set of specs").
beforeEach(function () {
}).
it("Should test something", function() {
var i = 0;
i += 1;
i.should().beEqual(1);
});
Add the function *async* to each callback that you want to test again. This will allow for Jody to determine if the test was successful
describe("Async spec").
it("Should only assert at the end", function (atEnd) {
asyncTest(async(function(val1,val2){
val1.should().beTrue();
val2.should().beFalse();
}));
});
See examples/http_spec.js
For functional testing the following can be used for a beforeAll and after All.
require('Jody').configure.beforeAll(function (done) {
// some setup before specs
done();
});
require('Jody').configure.afterAll(function (done) {
// clean up after all tests run
done();
});
A spec_helper.js
file in your specs directory will be executed before all specs. A good place to put your before all and after all.
See ./examples folder for examples on use
For suggestions, help or feedback go to https://convore.com/jody/
FAQs
Descriptive BDD Framework for nodejs
The npm package Jody receives a total of 0 weekly downloads. As such, Jody popularity was classified as not popular.
We found that Jody 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.