Skip to content

Commit

Permalink
Run unit tests under AMD
Browse files Browse the repository at this point in the history
* Removed browser globals support
* Added poly.js support for tests
* Full test suite passage in FF 3.6 and IE 6-8 for the first time
  • Loading branch information
scothis committed May 30, 2012
1 parent e5168bf commit 84dafc1
Show file tree
Hide file tree
Showing 40 changed files with 795 additions and 180 deletions.
16 changes: 16 additions & 0 deletions lib/curl-config.js
@@ -0,0 +1,16 @@
(function(g) {

g.curl = {
debug: true,
apiName: 'curl',
baseUrl: '../',
packages: [
{ name: 'rest', location: 'src/rest', main: '../rest'},
{ name: 'curl', location: 'node_modules/curl/src/curl', main: '../curl' },
{ name: 'poly', location: 'node_modules/poly', main: 'poly' },
{ name: 'when', location: 'node_modules/when', main: 'when' }
],
preloads: ['poly/object', 'poly/array', 'poly/string', 'poly/xhr', 'js!lib/json2.js!exports=JSON']
};

})(this);

0 comments on commit 84dafc1

Please sign in to comment.