mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
19 lines
543 B
JavaScript
19 lines
543 B
JavaScript
// @flow
|
|
import * as models from '../../models';
|
|
import { strings } from '../strings';
|
|
import { getWorkspaceLabel } from '../get-workspace-label';
|
|
|
|
describe('getWorkspaceLabel', () => {
|
|
it('should return document label', () => {
|
|
const w = models.workspace.init();
|
|
w.scope = 'designer';
|
|
expect(getWorkspaceLabel(w)).toBe(strings.document);
|
|
});
|
|
|
|
it('should return collection label', () => {
|
|
const w = models.workspace.init();
|
|
w.scope = 'collection';
|
|
expect(getWorkspaceLabel(w)).toBe(strings.collection);
|
|
});
|
|
});
|