it("should transform unsupported require api to undefined", function () {
	expect(require.extensions).toBeUndefined();
	expect(require.config).toBeUndefined();
	expect(require.version).toBeUndefined();
	expect(require.amd).toBeUndefined();
	expect(require.include).toBeUndefined();
	expect(require.onError).toBeUndefined();
	expect(require.main.require).toBeUndefined();
	expect(module.parent.require).toBeUndefined();

	expect(require.include("a")).toBeUndefined();
	expect(require.onError(function () {})).toBeUndefined();
	expect(require.main.require("a")).toBeUndefined();
	expect(module.parent.require("a")).toBeUndefined();

	function requireInBlock() {
		var require = {
			extensions: {},
			config: {},
			version: {},
			amd: {},
			include: {},
			onError: {},
			main: {
				require: {}
			}
		};
		var module = {
			parent: {
				require: {}
			}
		};
		expect(require.extensions).toBeTruthy();
		expect(require.config).toBeTruthy();
		expect(require.version).toBeTruthy();
		expect(require.amd).toBeTruthy();
		expect(require.include).toBeTruthy();
		expect(require.onError).toBeTruthy();
		expect(require.main.require).toBeTruthy();
		expect(module.parent.require).toBeTruthy();
	}
	requireInBlock();
});
