UNPKG

siegel

Version:

Web application development ecosystem

1 lines 627 B
import e from"./index.js";describe("common/is/same_type",()=>{test("null",()=>{expect(e(null,null)).toBe(!0)}),test("undefined",()=>{expect(e(void 0,void 0)).toBe(!0)}),test("number",()=>{expect(e(20,40)).toBe(!0)}),test("set",()=>{expect(e(new Set,new Set)).toBe(!0)}),test("objects",()=>{expect(e({},{})).toBe(!0)}),test("string & new String",()=>{expect(e("",new String)).toBe(!0)}),test("null & undefined",()=>{expect(e(null,void 0)).toBe(!1)}),test("null & undefined",()=>{expect(e(null,void 0)).toBe(!1)}),test("false & null",()=>{expect(e(!1,null)).toBe(!1)}),test("object & set",()=>{expect(e({},new Set)).toBe(!1)})});