Skip to content

Instantly share code, notes, and snippets.

@benbrandt
Last active June 27, 2019 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save benbrandt/91a804e262a5cf7eb0b5c7e025043a1e to your computer and use it in GitHub Desktop.
Save benbrandt/91a804e262a5cf7eb0b5c7e025043a1e to your computer and use it in GitHub Desktop.
const jQuery = require(“jquery”);
Object.defineProperty(window, “jQuery”, { value: jQuery });
Object.defineProperty(window, “$”, { value: jQuery });
const angular = require(“angular”);
Object.defineProperty(window, “angular”, { value: angular });
require(“angular-mocks”);
require(./);
@rgeraldporter
Copy link

Thanks. FYI the quotes here seem to be special quotes, not normal double-quotes. Fix here: https://gist.github.com/rgeraldporter/744e4cfb3462891aeeef8109a80556f7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment