Changeset View
Changeset View
Standalone View
Standalone View
lib/shared/thread-utils.test.js
// @flow | // @flow | ||||
import { parsePendingThreadID } from './thread-utils.js'; | import { parsePendingThreadID } from './thread-utils.js'; | ||||
import { threadTypes } from '../types/thread-types.js'; | import { threadTypes } from '../types/thread-types-enum.js'; | ||||
describe('parsePendingThreadID(pendingThreadID: string)', () => { | describe('parsePendingThreadID(pendingThreadID: string)', () => { | ||||
it('should return correct data for real pending sidebar ID', () => { | it('should return correct data for real pending sidebar ID', () => { | ||||
const sidebarResult = { | const sidebarResult = { | ||||
threadType: threadTypes.SIDEBAR, | threadType: threadTypes.SIDEBAR, | ||||
memberIDs: [], | memberIDs: [], | ||||
sourceMessageID: '12345', | sourceMessageID: '12345', | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |