
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
false-bookshelf
Advanced tools
A set of mocked utilities for testing while isolating Bookshelf IO
// bootstrap.js
var Bookshelf = require('bookshelf');
var False = require('false-bookshelf').FalseBookshelf;
Bookshelf.PG = False.forge();
// test-model.js
var Bookshelf = require('bookshelf');
module.export = { Model : Bookshelf.PG.Model.extend({}, {}) };
// test/test.js
var TestModel = require('./test-model').Model;
var getServer = require('./get-server');
describe('200', function() {
var server;
before(function() {
server = getServer();
TestModel.registerShim(function() {
this.fetch.returns(Promise.resolve(this));
this.get.withArgs('source').returns('dev');
});
});
it('200', (done) => {
var options = {
method : 'GET',
url : '/path/to/test',
};
return new Promise((resolve, reject) => {
return server.inject(options, (response) => {
return resolve(response);
});
})
.then((response) => {
expect(response.statusCode).to.equal(200);
done();
})
.catch(done);
});
});
FAQs
Mocked Bookshelf Structure to isolate IO for testing
The npm package false-bookshelf receives a total of 5 weekly downloads. As such, false-bookshelf popularity was classified as not popular.
We found that false-bookshelf 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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.