Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Cache Buster to url #17

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Add Cache Buster to jasmine tests

  • Loading branch information
vhalbwachs committed May 7, 2015
commit dfc18d6a0bfcd98da1b79f7297c7c0720687e936
@@ -166,4 +166,14 @@ describe("loggly.tracker", function() {
expect(_LTracker.track).not.toHaveBeenCalled()
});

it("contains a cachebuster string", function() {
var imageStub = {};
spyOn(window, 'Image').andReturn(imageStub);
spyOn(window.Math, 'random').andReturn(0.1234567890123456);

_LTracker.push('test');
jasmine.Clock.tick(20);

expect(imageStub.src).toContain('&CACHEBUST=1234567890123456');
});
});
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.