lorem-ipsum
Version:
Generates passages of lorem ipsum text suitable for use as placeholder copy in web pages, graphics, and more. Works in the browser, NodeJS, and React Native.
19 lines (15 loc) • 665 B
text/typescript
import { getCopyCommand } from ".";
import { SUPPORTED_PLATFORMS } from "../../constants/platforms";
import { COPY } from "../constants/commands";
describe("getCopyCommand", () => {
test("Should return the copy command for Mac OSX", () => {
expect(getCopyCommand(SUPPORTED_PLATFORMS.DARWIN)).toEqual(COPY.DARWIN);
});
test("Should return the copy command for Linux", () => {
expect(getCopyCommand(SUPPORTED_PLATFORMS.LINUX)).toEqual(COPY.LINUX);
expect(getCopyCommand()).toEqual(COPY.LINUX);
});
test("Should return the copy command for Windows", () => {
expect(getCopyCommand(SUPPORTED_PLATFORMS.WIN32)).toEqual(COPY.WIN32);
});
});