Welcome to mirror list, hosted at ThFree Co, Russian Federation.

require.spec.js « require « acceptance « test « mocha-3.1.0 « lib « tests - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 22570e62ffbb4a18bb1bc6778d002e86933c2d05 (plain)
1
2
3
4
5
6
7
8
9
describe('require test', function(){
  it('should require args in order', function(){
    var req = global.required;
    expect(req.indexOf('a.js')).to.equal(0);
    expect(req.indexOf('b.coffee')).to.equal(1);
    expect(req.indexOf('c.js')).to.equal(2);
    expect(req.indexOf('d.coffee')).to.equal(3);
  })
});