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

20 lines
381 B
JavaScript
Raw Normal View History

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