loopback-connector-remote/test/util/it.js

20 lines
327 B
JavaScript
Raw Normal View History

2014-09-25 21:06:06 +00:00
var loopback = require('loopback');
module.exports = it;
it.onServer = function itOnServer(name, fn) {
if (loopback.isServer) {
it(name, fn);
} else {
it.skip(name, fn);
}
};
it.inBrowser = function itInBrowser(name, fn) {
if (loopback.isBrowser) {
it(name, fn);
} else {
it.skip(name, fn);
}
};