Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added require to the test and undated the require testing config
  • Loading branch information
rjwaring committed Jun 17, 2015
commit fd7226420573742cf64eb8f76660ce0db62c162f
11 changes: 10 additions & 1 deletion test-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,20 @@ Object.keys(window.__karma__.files).forEach(function(file) {

require.config({
// Karma serves files under /base, which is the basePath from your config file
baseUrl: '/base',
baseUrl: '/base/togetherjs',

// dynamically load all test files
deps: allTestFiles,

// paths to dependencies
paths: {
'jquery': 'libs/jquery-1.11.1.min',
'almond': 'libs/almond',
'tinycolor': 'libs/tinycolor',
'mersenne': 'libs/whrandom/mersenne',
'random': 'libs/whrandom/random'
},

// we have to kickoff jasmine, as it is asynchronous
callback: window.__karma__.start
});
11 changes: 7 additions & 4 deletions togetherjs/tests/jasmine/util.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
'use strict';

describe('Util', function() {
it('should run a test', function() {
expect(true).toEqual(true);
})
define(['util'], function(util) {
describe('Util', function() {
it('should run a test', function() {
expect(true).toEqual(true);
})
});
});