20 lines
467 B
JavaScript
20 lines
467 B
JavaScript
// Copyright IBM Corp. 2016. All Rights Reserved.
|
|
// Node module: loopback-datasource-juggler
|
|
// This file is licensed under the MIT License.
|
|
// License text available at https://opensource.org/licenses/MIT
|
|
'use strict';
|
|
|
|
exports.describeIf = function describeIf(cond, name, fn) {
|
|
if (cond)
|
|
describe(name, fn);
|
|
else
|
|
describe.skip(name, fn);
|
|
};
|
|
|
|
exports.itIf = function itIf(cond, name, fn) {
|
|
if (cond)
|
|
it(name, fn);
|
|
else
|
|
it.skip(name, fn);
|
|
};
|