old_contents: const createMinifier = require("../");
  const Minifier = createMinifier.Minifier;
  
  describe("Minifier", () => {
  	let min;
  	beforeEach(() => min = new Minifier());
  
  	describe("idents", () => {
  		it("should be empty", () => {
  			expect(min.idents.size).toEqual(0);
  		});
  	});
  
  	describe("indexes", () => {
  		it("should have an initial element of 0", () => {
  			expect(min.indexes).toEqual([0]);
  		});
  	})
  
  	describe("getLocalIdent", () => {
  		it("should return a new name if key is not in idents map", () => {
  			expect(min.getLocalIdent({ resourcePath: "test" }, null, "test")).toEqual("a");
  		});
  
  		it("should return the same name if key is the same", () => {
  			min.getLocalIdent({ resourcePath: "test" }, null, "test");
  			expect(min.getLocalIdent({ resourcePath: "test" }, null, "test")).toEqual("a");
  		});
  	});
  
  	describe("getNextIdent", () => {
  		it("shouldn't return any duplicates after 2,000 runs", () => {
  			const names = [];
  			for (let i = 0; i < 2000; i++) {
  				names.push(min.getNextIdent(i));
  			}
  
  			expect(new Set(names).size).toEqual(names.length);
  		});
  
  		it("should return the same name if key is the same", () => {
  			min.getLocalIdent({ resourcePath: "test" }, null, "test");
  			expect(min.getLocalIdent({ resourcePath: "test" }, null, "test")).toEqual("a");
  		});
  	});
  });
  
  describe("createMinifier", () => {
  	it("should return getLocalIdent", () => {
  		expect(createMinifier().name).toMatch("getLocalIdent");
  	});
  });
  
new_contents: "use strict";
  
  const createMinifier = require("../");
  const Minifier = createMinifier.Minifier;
  
  describe("Minifier", () => {
  	let min;
  	beforeEach(() => min = new Minifier());
  
  	describe("idents", () => {
  		it("should be empty", () => {
  			expect(min.idents.size).toEqual(0);
  		});
  	});
  
  	describe("indexes", () => {
  		it("should have an initial element of 0", () => {
  			expect(min.indexes).toEqual([0]);
  		});
  	})
  
  	describe("getLocalIdent", () => {
  		it("should return a new name if key is not in idents map", () => {
  			expect(min.getLocalIdent({ resourcePath: "test" }, null, "test")).toEqual("a");
  		});
  
  		it("should return the same name if key is the same", () => {
  			min.getLocalIdent({ resourcePath: "test" }, null, "test");
  			expect(min.getLocalIdent({ resourcePath: "test" }, null, "test")).toEqual("a");
  		});
  	});
  
  	describe("getNextIdent", () => {
  		it("shouldn't return any duplicates after 2,000 runs", () => {
  			const names = [];
  			for (let i = 0; i < 2000; i++) {
  				names.push(min.getNextIdent(i));
  			}
  
  			expect(new Set(names).size).toEqual(names.length);
  		});
  
  		it("should return the same name if key is the same", () => {
  			min.getLocalIdent({ resourcePath: "test" }, null, "test");
  			expect(min.getLocalIdent({ resourcePath: "test" }, null, "test")).toEqual("a");
  		});
  	});
  });
  
  describe("createMinifier", () => {
  	it("should return getLocalIdent", () => {
  		expect(createMinifier().name).toMatch("getLocalIdent");
  	});
  });
  
subject: Fix Node 4 tests.