mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
d17161afee
* Customizable Commit Messages * Removes lodash * Update package.json * README * Changes * Check for null * Adds a dash
21 lines
600 B
TypeScript
21 lines
600 B
TypeScript
import { isNullOrUndefined } from "../src/util";
|
|
|
|
describe("util", () => {
|
|
describe("isNullOrUndefined", () => {
|
|
it("should return true if the value is null", async () => {
|
|
const value = null;
|
|
expect(isNullOrUndefined(value)).toBeTruthy();
|
|
});
|
|
|
|
it("should return true if the value is undefined", async () => {
|
|
const value = undefined;
|
|
expect(isNullOrUndefined(value)).toBeTruthy();
|
|
});
|
|
|
|
it("should return false if the value is defined", async () => {
|
|
const value = "montezuma";
|
|
expect(isNullOrUndefined(value)).toBeFalsy();
|
|
});
|
|
});
|
|
});
|