suitest-js-api
Version:
Suitest is a test automation and device manipulation tool for living room devices and web browsers.
11 lines (8 loc) • 335 B
JavaScript
const {makeMethodComposer} = require('../utils/makeComposer');
const composers = require('../constants/composer');
/**
* Defines toJSON method
*/
const makeToStringComposer = toJSONMethod =>
makeMethodComposer(composers.TO_JSON, ['toJSON'], (_, data) => toJSONMethod.call(undefined, data));
module.exports = makeToStringComposer;