UNPKG

only-changed-jest-watch-plugin

Version:

Jest watch plugin for running either only the modified test (for TDD), or tests of dependant modules

24 lines (19 loc) 721 B
'use strict'; var shorthandSetter = require('../parsers').shorthandSetter; var shorthandGetter = require('../parsers').shorthandGetter; var shorthandParser = require('../parsers').shorthandParser; var shorthand_for = { 'border-right-width': require('./borderRightWidth'), 'border-right-style': require('./borderRightStyle'), 'border-right-color': require('./borderRightColor') }; var isValid = function isValid(v) { return shorthandParser(v, shorthand_for) !== undefined; }; module.exports.isValid = isValid; module.exports.definition = { set: shorthandSetter('border-right', shorthand_for), get: shorthandGetter('border-right', shorthand_for), enumerable: true, configurable: true };