UNPKG

443 BJavaScriptView Raw
1coffee = require('coffee-script');
2container = require('../index').container();
3assert = require('assert');
4
5describe('resolve', function () {
6 container.register('foo', {});
7 container.register('bar', 'hurp');
8 container.register('baz', 1);
9
10 it('correctly parses functions with newlines in the argument lists', function (done) {
11 container.resolve(function(foo, bar,
12 baz) {
13 done();
14 });
15 });
16});