Skip to content

Commit

Permalink
[#2648] Clean up resource-form spec
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed Jul 16, 2012
1 parent a98a773 commit ad6abcc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ckan/public/base/test/spec/modules/resource-form.spec.js
@@ -1,5 +1,5 @@
/*globals describe beforeEach afterEach it assert sinon ckan jQuery */
describe('ResourceFormModule()', function () {
describe('ckan.modules.ResourceFormModule()', function () {
var ResourceFormModule = ckan.module.registry['resource-form'];

beforeEach(function () {
Expand All @@ -8,6 +8,10 @@ describe('ResourceFormModule()', function () {
this.module = new ResourceFormModule(this.el, {}, this.sandbox);
});

afterEach(function () {
this.module.teardown();
});

describe('.initialize()', function () {
it('should subscribe to the "resource:uploaded" event', function () {
var target = sinon.stub(this.sandbox, 'subscribe');
Expand Down

0 comments on commit ad6abcc

Please sign in to comment.