2017-12-17 23:52:56 +08:00
|
|
|
it("should have unique ids", function () {
|
|
|
|
var ids = [];
|
|
|
|
for(var i = 1; i <= 15; i++) {
|
|
|
|
var id = require("./files/file" + i + ".js");
|
2018-01-27 05:51:03 +08:00
|
|
|
expect(ids.indexOf(id)).toBe(-1);
|
2017-12-17 23:52:56 +08:00
|
|
|
ids.push(id);
|
|
|
|
}
|
|
|
|
});
|