{"size": 854, "ext": "js", "max_stars_repo_path": "test/is.js", "max_stars_repo_name": "hangxingliu/node-assert", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/is.js", "max_issues_repo_name": "hangxingliu/node-assert", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/is.js", "max_forks_repo_name": "hangxingliu/node-assert", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 32.8461538462, "max_line_length": 79, "alphanum_fraction": 0.5948477752}
//@ts-check

let { Assert } = require('..'),
	{ shouldThrow, noThrow } = require('./_utils');

describe('Assert.is', () => {
	noThrow('# true isTrue', () => Assert(true).isTrue());
	noThrow('# false isFalse', () => Assert(false).isFalse());

	noThrow('# undefined isUndefined (1)', () => Assert(undefined).isUndefined());
	//@ts-ignore
	noThrow('# undefined isUndefined (2)', () => Assert().isUndefined());

	noThrow('# "" isString', () => Assert("").isString());

	noThrow('# 0 isNumber', () => Assert(0).isNumber());
	noThrow('# Infinity isNumber', () => Assert(Infinity).isNumber());

	noThrow('# [] isObject', () => Assert([]).isObject());
	noThrow('# null isObject', () => Assert(null).isObject());


	shouldThrow('# ! null isUndefined', () => Assert(null).isUndefined());
	shouldThrow('# ! "hello" isObject', () => Assert("hello").isObject());
});
