insomnia/packages/insomnia-app/app/common/__tests__/strings.test.js
2021-03-04 19:09:34 +01:00

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);
});
});