Created
August 3, 2012 20:11
-
-
Save ericelliott/3251107 to your computer and use it in GitHub Desktop.
applitude jasmine tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (app) { | |
'use strict'; | |
applitude.register('mvc', { | |
Models: {} | |
}); | |
applitude.register('mixinTest', { | |
mixins: 'mvc' | |
}); | |
applitude.register('overrideTest', { | |
Models: { | |
override: true | |
}, | |
mixins: 'mvc' | |
}); | |
describe('mixinTest', function () { | |
it('should add mixins', function () { | |
expect(app.mixinTest.Models).toBeDefined(); | |
}); | |
}); | |
describe('mvc plugin', function () { | |
it('should exist', function () { | |
expect(app.mvc).toBeDefined(); | |
}); | |
}); | |
describe('overrideTest', function () { | |
it('should let module override mixins', function () { | |
expect(app.overrideTest.Models.override).toBeDefined(); | |
}); | |
}); | |
}(applitude)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment