Files
test-repo/tests/object-prop-break-in/test.js
T
Christopher Chedeau 3375cfe605 Move tests around (#454)
* new_tests

* move_all_clobbered_tests

* remove all the tests that no longer exist

* re-run flow tests

* Move all the flow tests to tests/flow and prettier to tests/

* Move prettier tests to their own folders

* Add jsfmt files

* run prettier snapshot tests
2017-01-24 14:35:37 -08:00

28 lines
654 B
JavaScript

const a = classnames({
"some-prop": this.state.longLongLongLongLongLongLongLongLongTooLongProp
});
const b = classnames({
"some-prop": this.state.longLongLongLongLongLongLongLongLongTooLongProp === true
});
const c = classnames({
"some-prop": [ "foo", "bar", "foo", "bar", "foo", "bar", "foo", "bar", "foo" ]
});
const d = classnames({
"some-prop": () => {}
});
const e = classnames({
"some-prop": function bar() {}
});
const f = classnames({
"some-prop": { foo: "bar", bar: "foo", foo: "bar", bar: "foo", foo: "bar" }
});
const g = classnames({
"some-prop": longLongLongLongLongLongLongLongLongLongLongLongLongTooLongVar || 1337
});