I\'m new to Jasmine and have just started using it. I have a library js file with lots of functions which are not associated with any object (i.e. are global). How do I go a
My answer differs slightly to @FlavorScape in that I had a single (default export) function in the imported module, I did the following:
import * as functionToTest from 'whatever-lib'; const fooSpy = spyOn(functionToTest, 'default');