Skip to content

gillescochez/testRemoteJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

testRemoteJS

This little helper was created to help me create test case for my skeletons. As they all generate an object called skeleton in the window scope and because I didn't want to create one test file per skeleton I had to use multiple script tag to load multiple skeleton and resetting them after each tests.

The cascade of script tags make the test code very ugly so I wrote this little helper for Qunit so all test can be included in their own javascript files.

in HTML document

<script src="qunit.js"></script>
<script src="testRemoteJS.js"></script>

in javascript

testRemoteJS('script.js', function() {
    expect(1);
    ok(foo, 'foo exists');
});

About

Remote file wrapper function for Qunit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors