Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added missing it

  • Loading branch information...
commit 8eb6fca907225c2db7a8fc41969d22effa08995c 1 parent 69f2741
@geddski geddski authored
View
2  buster/spec/module/test.module.extension.js
@@ -48,7 +48,9 @@ describe('module with own dependency', function(){
describe('nested requires', function(){
require(['require'], function(require){
require(['module-one'], function(moduleOne){
+ it('should work', function(){
expect(moduleOne.name).toEqual("Module One");
+ });
});
})
});
View
59 buster/spec/module/test.module.js
@@ -10,30 +10,30 @@ require.config({
baseUrl: 'js/' //MUST be the same as the modules you're testing
});
-describe('run syntax with no dependencies', function(run){
- require([], function(){
- run(function(){
- it('should work', function () {
+describe('run syntax with no dependencies', function(run) {
+ require([], function() {
+ run(function() {
+ it('should work', function() {
expect(true).toEqual(true);
});
});
});
});
-describe('single dependency', function(run){
- require(['module-one'], function(moduleOne){
- run(function(){
- it('should work', function () {
+describe('single dependency', function(run) {
+ require(['module-one'], function(moduleOne) {
+ run(function() {
+ it('should work', function() {
expect(moduleOne.name).toEqual("Module One");
});
});
});
});
-describe('multiple dependencies', function(run){
- require(['module-one', 'module-three'], function(moduleOne, moduleThree){
- run(function(){
- it('should work', function () {
+describe('multiple dependencies', function(run) {
+ require(['module-one', 'module-three'], function(moduleOne, moduleThree) {
+ run(function() {
+ it('should work', function() {
expect(moduleOne.name).toEqual("Module One");
expect(moduleThree.name).toEqual("Module Three");
});
@@ -42,10 +42,10 @@ describe('multiple dependencies', function(run){
});
/* module-two depends on module-one */
-describe('module with own dependency', function(run){
- require(['module-two'], function(moduleTwo){
- run(function(){
- it('should work', function () {
+describe('module with own dependency', function(run) {
+ require(['module-two'], function(moduleTwo) {
+ run(function() {
+ it('should work', function() {
expect(moduleTwo.name).toEqual("Module Two");
expect(moduleTwo.dependencies[0].name).toEqual("Module One");
});
@@ -54,18 +54,23 @@ describe('module with own dependency', function(run){
});
/* !! TEST BEING SKIPPED FOR SOME REASON !! */
-describe('nested requires', function(){
- require(['require'], function(require){
- require(['module-one'], function(moduleOne){
+describe('nested requires', function() {
+ require(['require'], function(require) {
+ require(['module-one'], function(moduleOne) {
+ it('should work', function() {
expect(moduleOne.name).toEqual("Module One");
+ });
});
})
});
/* !! TEST BEING SKIPPED FOR SOME REASON !! */
-describe('requirejs plugins', function(){
+describe('requirejs plugins', function() {
require.config({
- paths: {'wrap': 'lib/wrap', 'text': 'lib/text'},
+ paths: {
+ 'wrap': 'lib/wrap',
+ 'text': 'lib/text'
+ },
wrapJS: {
'pizza': {
deps: ['cheese'],
@@ -73,15 +78,11 @@ describe('requirejs plugins', function(){
}
}
});
- require(['wrap!pizza'], function(pizza){
- run(function(){
- it('should work', function(){
+ require(['wrap!pizza'], function(pizza) {
+ run(function() {
+ it('should work', function() {
expect(pizza.ingredients[0].name).toEqual("cheese");
});
});
});
-});
-
-
-
-
+});
Please sign in to comment.
Something went wrong with that request. Please try again.