wix-style-react
Version:
wix-style-react
21 lines (19 loc) • 695 B
JavaScript
;
var _ = require('.');
describe('LiveCodeExample', function () {
describe('createPropsArray', function () {
it('should return an array of string matching the props object', function () {
expect((0, _.createPropsArray)({
stringProp: 'I am a string',
numberProp: 5,
someBoolean: true,
anotherBoolean: false,
arrayProp: [1, 'two'],
objectProp: {
prop1: 'string',
prop2: 2
}
})).toEqual(expect.arrayContaining(['stringProp="I am a string"', 'numberProp={5}', 'someBoolean', 'anotherBoolean={false}', 'arrayProp={[1,"two"]}', 'objectProp={{"prop1":"string","prop2":2}}']));
});
});
});