Skip to content

Instantly share code, notes, and snippets.

@ericelliott
Created August 3, 2012 20:11
Show Gist options
  • Save ericelliott/3251107 to your computer and use it in GitHub Desktop.
Save ericelliott/3251107 to your computer and use it in GitHub Desktop.
applitude jasmine tests
(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