test.js 654 B

12345678910111213141516171819202122232425262728
  1. const a = classnames({
  2. "some-prop": this.state.longLongLongLongLongLongLongLongLongTooLongProp
  3. });
  4. const b = classnames({
  5. "some-prop": this.state.longLongLongLongLongLongLongLongLongTooLongProp === true
  6. });
  7. const c = classnames({
  8. "some-prop": [ "foo", "bar", "foo", "bar", "foo", "bar", "foo", "bar", "foo" ]
  9. });
  10. const d = classnames({
  11. "some-prop": () => {}
  12. });
  13. const e = classnames({
  14. "some-prop": function bar() {}
  15. });
  16. const f = classnames({
  17. "some-prop": { foo: "bar", bar: "foo", foo: "bar", bar: "foo", foo: "bar" }
  18. });
  19. const g = classnames({
  20. "some-prop": longLongLongLongLongLongLongLongLongLongLongLongLongTooLongVar || 1337
  21. });