Sha256: ffd451aec7e65a37585673007fde2e5c12eac04bd8fe4fa0f50fac4cd8632106
Contents?: true
Size: 652 Bytes
Versions: 26
Compression:
Stored size: 652 Bytes
Contents
import { describe, it, expect } from 'vitest' import { splitActionAttribute } from './split-action-attribute' describe('splitActionAttribute', () => { it("returns empty object if no action", () => { expect(splitActionAttribute("")).toEqual({ eventType: "", componentName: "", stateName: "", fnName: "", bounceTime: 0 }) }) it("returns eventType, componentName, stateName, fnName, bounceTime", () => { expect(splitActionAttribute("click->ChatState#send_message@10")).toEqual({ eventType: "click", componentName: "ChatComponent", stateName: "ChatState", fnName: "send_message", bounceTime: 10 }) }) })
Version data entries
26 entries across 26 versions & 1 rubygems