select.js 512 B

123456789101112131415
  1. var Similar = require('../src/similar');
  2. describe("map may or may not exist", () => {
  3. var MapOrSimilar = require('../src/map-or-similar'),
  4. mapOrSimilar = new MapOrSimilar();
  5. it("chose Map because it exists", () => { expect(mapOrSimilar instanceof Map).toEqual(true); });
  6. });
  7. describe("force similar", () => {
  8. var MapOrSimilar = require('../src/map-or-similar'),
  9. mapOrSimilar = new MapOrSimilar(true);
  10. it("was forced to similar", () => { expect(mapOrSimilar instanceof Similar).toEqual(true); });
  11. });