Skip to content

Instantly share code, notes, and snippets.

@campaul
Created March 6, 2014 00:44
Show Gist options
  • Save campaul/9379947 to your computer and use it in GitHub Desktop.
Save campaul/9379947 to your computer and use it in GitHub Desktop.
// Old Test Files
foo.bar.baz = function() {
window.setUp = function() {
// Set up
}
window.testFoo = function() {
// A test
}
window.tearDown = function() {
// Tear down
}
}
// New Test Files
suite('foo.bar.baz', function() {
setup(function() {
// Set up
});
test('Foo', function() {
// A test
});
teardown(function() {
// Tear down
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment