2018-01-03 04:05:53 +00:00
|
|
|
// Copyright IBM Corp. 2014,2018. All Rights Reserved.
|
2016-05-03 22:50:21 +00:00
|
|
|
// Node module: loopback
|
|
|
|
// This file is licensed under the MIT License.
|
|
|
|
// License text available at https://opensource.org/licenses/MIT
|
|
|
|
|
2016-11-15 21:46:23 +00:00
|
|
|
'use strict';
|
2014-05-03 01:12:24 +00:00
|
|
|
var loopback = require('../../');
|
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
};
|