describe('Sugar.js', function() {
    var testrun;

    before(function(done) {
        this.run({
            collection: {
                item: [{
                    event: [{
                        listen: 'test',
                        script: {
                            exec: [
                                'tests[\'Array prototype none\'] = ["a", "b", "c"].none("d");',
                                'tests[\'Array prototype any\'] = [ [1,2], [2,3] ].any([2,3]);',
                                'tests[\'Array prototype average\'] = [ 1, 2, 3, 4, 5 ].average() === 3;',
                                'tests[\'Date prototype getTime\'] = Date.now()==(new Date()).getTime();',
                                'var fCount = 0;',
                                'var fn = (function() {',
                                '  fCount++;',
                                '}).once(); fn(); fn(); fn();',
                                'tests[\'Function prototype once\'] = fCount===1;',
                                'tests[\'Number prototype hex\'] = (56).hex() === "38";',
                                'tests[\'Number prototype isEven\'] = (56).isEven() === true;',
                                'tests[\'Number prototype ordinalize\'] = (56).ordinalize() === "56 th";',
                                'tests[\'Number prototype format\'] = (56789.10).format() === "56, 789.1";',
                                '// Extended String prototype tests',
                                'tests[\'String prototype endsWith\'] = "jumpy".endsWith("py");',
                                'tests[\'String prototype negated endsWith\'] = !("jumpy".endsWith("MPY"));',
                                'tests[\'String prototype camelize\'] = "a - beta".camelize() === "ABeta";',
                                'tests[\'String prototype repeat\'] = "a".repeat(5) === "aaaaa";',
                                'tests[\'String prototype shift\'] = "abc".shift(5) === "fgh";',
                                'tests[\'String prototype spacify\'] = "a - b_cD".spacify() === "a b c d";'
                            ]
                        }
                    }],
                    request: {
                        url: 'postman-echo.com/get',
                        method: 'GET'
                    }
                }]
            }
        }, function(err, results) {
            testrun = results;
            done(err);
        });
    });

    it('must have run the test script successfully', function() {
        expect(testrun).be.ok();
        expect(testrun.test.calledOnce).be.ok();

        expect(testrun.test.getCall(0).args[0]).to.be(null);
        expect(testrun.assertion.getCall(0).args[1]).to.eql([
            {error: null, index: 0, passed: true, skipped: false, name: 'Array prototype none'},
            {error: null, index: 1, passed: true, skipped: false, name: 'Array prototype any'},
            {error: null, index: 2, passed: true, skipped: false, name: 'Array prototype average'},
            {error: null, index: 3, passed: true, skipped: false, name: 'Date prototype getTime'},
            {error: null, index: 4, passed: true, skipped: false, name: 'Function prototype once'},
            {error: null, index: 5, passed: true, skipped: false, name: 'Number prototype hex'},
            {error: null, index: 6, passed: true, skipped: false, name: 'Number prototype isEven'},
            {
                error: {message: 'expected false to be truthy', name: 'AssertionError', type: 'Error'},
                index: 7,
                passed: false,
                skipped: false,
                name: 'Number prototype ordinalize'
            },
            {
                error: {message: 'expected false to be truthy', name: 'AssertionError', type: 'Error'},
                index: 8,
                passed: false,
                skipped: false,
                name: 'Number prototype format'
            },
            {error: null, index: 9, passed: true, skipped: false, name: 'String prototype endsWith'},
            {error: null, index: 10, passed: true, skipped: false, name: 'String prototype negated endsWith'},
            {error: null, index: 11, passed: true, skipped: false, name: 'String prototype camelize'},
            {error: null, index: 12, passed: true, skipped: false, name: 'String prototype repeat'},
            {error: null, index: 13, passed: true, skipped: false, name: 'String prototype shift'},
            {error: null, index: 14, passed: true, skipped: false, name: 'String prototype spacify'}
        ]);
    });

    it('must have completed the run', function() {
        expect(testrun).be.ok();
        expect(testrun.done.calledOnce).be.ok();
        expect(testrun.done.getCall(0).args[0]).to.be(null);
        expect(testrun.start.calledOnce).be.ok();
    });
});

@@ -1,8 +1,46 @@
+var expect = require('chai').expect;%0A%0A
 describe
@@ -2497,28 +2497,30 @@
 );%0A%0A    it('
-must
+should
  have run th
@@ -2577,39 +2577,40 @@
 expect(testrun).
+to.
 be.ok
-()
 ;%0A        expect
@@ -2621,32 +2621,75 @@
 trun
+)
 .t
-est.calledOnce).be.ok(
+o.nested.include(%7B%0A            'test.calledOnce': true%0A        %7D
 );%0A%0A
@@ -2733,38 +2733,37 @@
 ).args%5B0%5D).to.be
-(
+.
 null
-)
 ;%0A        expect
@@ -4694,12 +4694,14 @@
 it('
-must
+should
  hav
@@ -4759,23 +4759,24 @@
 estrun).
+to.
 be.ok
-()
 ;%0A      
@@ -4801,137 +4801,167 @@
 one.
-calledOnce).be.ok();%0A        expect(testrun.done.getCall(0).args%5B0%5D).to.be(null);%0A        expect(testrun.start.calledOnce).be.ok(
+getCall(0).args%5B0%5D).to.be.null;%0A        expect(testrun).to.nested.include(%7B%0A            'done.calledOnce': true,%0A            'start.calledOnce': true%0A        %7D
 );%0A 

Update integration/sanity/sugar-js tests to chai