Skip to content

Commit

Permalink
Delete old specs and add more specs for circular modules
Browse files Browse the repository at this point in the history
  • Loading branch information
lifesinger committed Jan 27, 2013
1 parent c38d195 commit 962b1af
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 83 deletions.
27 changes: 0 additions & 27 deletions tests/issues/circular-deps/dist/main-debug.js

This file was deleted.

1 change: 0 additions & 1 deletion tests/issues/circular-deps/dist/main.js

This file was deleted.

7 changes: 0 additions & 7 deletions tests/issues/circular-deps/package.json

This file was deleted.

9 changes: 0 additions & 9 deletions tests/issues/circular-deps/src/main.js

This file was deleted.

37 changes: 0 additions & 37 deletions tests/issues/circular-deps/test.html

This file was deleted.

6 changes: 4 additions & 2 deletions tests/specs/module/circular/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@ define(function(require) {

var test = require('../../../test')

var a = require('./a')
var a = require('./simple/a')
test.assert(a.name === 'a', 'a.name')
test.assert(a.getB().name === 'b', 'a.getB().name')
test.assert(a.getB().getA() === a, 'a.getB().getA')

var b = require('./b')
var b = require('./simple/b')
test.assert(b.name, 'b.name')
test.assert(b.getA() === a, 'b.getA')
test.assert(b.getA().name === a.name, 'b.getA().name')
test.assert(b.getA().getB() === b, 'b.getA().getB()')

test.assert(require('./three/a').name = 'a', 'a -> b <-> c')

var global = this
var msg = global.consoleMsg
test.assert(msg.indexOf('Found circular dependencies') === 0, 'Check circular dependencies')
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 962b1af

Please sign in to comment.