2016-09-09 04:26:28 +08:00
|
|
|
it("should polyfill System", function() {
|
2017-02-28 21:32:35 +08:00
|
|
|
if (typeof System === "object" && typeof System.register === "function") {
|
2016-09-09 04:26:28 +08:00
|
|
|
require("fail");
|
|
|
|
}
|
2018-01-27 05:51:03 +08:00
|
|
|
expect((typeof System)).toBe("object");
|
|
|
|
expect((typeof System.register)).toBe("undefined");
|
|
|
|
expect((typeof System.get)).toBe("undefined");
|
|
|
|
expect((typeof System.set)).toBe("undefined");
|
|
|
|
expect((typeof System.anyNewItem)).toBe("undefined");
|
2016-09-09 04:26:28 +08:00
|
|
|
var x = System.anyNewItem;
|
2018-01-27 05:51:03 +08:00
|
|
|
expect((typeof x)).toBe("undefined");
|
2017-02-24 21:13:42 +08:00
|
|
|
})
|