wix-style-react
Version:
wix-style-react
19 lines (18 loc) • 689 B
JavaScript
import { createPropsArray } from '.';
describe('LiveCodeExample', function () {
describe('createPropsArray', function () {
it('should return an array of string matching the props object', function () {
expect(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}}']));
});
});
});