vegan-ipsum
Version:
Generates passages of vegan-themed placeholder text suitable for use in web pages, graphics, and more. Works in the browser, NodeJS, and React Native.
15 lines (13 loc) • 385 B
text/typescript
import { isNode } from ".";
/**
* Unit tests for the `isNode` function.
*/
describe("isNode", () => {
/**
* Test case: Should return true if the code is executing in a Node.js environment.
*/
test("should return true if executing in NodeJS", () => {
// Expect `isNode` to return true when running in a Node.js environment
expect(isNode()).toEqual(true);
});
});