suitest-js-api
Version:
Suitest is a test automation and device manipulation tool for living room devices and web browsers.
13 lines (10 loc) • 336 B
JavaScript
const {makeModifierComposer} = require('../utils/makeComposer');
const composers = require('../constants/composer');
/**
* Defines not and doesNot and isNot methods
*/
const notComposer = makeModifierComposer(composers.NOT, ['not', 'doesNot', 'isNot'], (_, meta) => ({
...meta,
isNegated: true,
}));
module.exports = notComposer;