Skip to content

Latest commit

 

History

History
97 lines (58 loc) · 2.83 KB

CHANGELOG.md

File metadata and controls

97 lines (58 loc) · 2.83 KB

1.1.0 (2016-11-24)

Features

1.0.1 (2015-12-06)

Bug Fixes

  • fix trailing slash detection (26552e56)

1.0.0 (2015-08-22)

Features

0.10.0 (2014-11-11)

Features

  • espower-coffee:
    • update espower-source to 0.10.0 (48f6d5fd)

0.9.1 (2014-09-17)

Features

  • espower-coffee: update espower-source to 0.9.1 (c84cf698)

0.9.0 (2014-09-02)

Features

  • espower-coffee: interact with coffeescript compiler to adjust line number in power-assert output (9c159205)

0.8.0 (2014-08-12)

Features

  • espower-coffee: update espower-source to 0.8.0 (8702d847)

Breaking Changes

If you already customize instrumentation pattern using espowerOptions.powerAssertVariableName and espowerOptions.targetMethods, you need to migarte. To migrate, change your code from the following:

require('espower-coffee')({
    cwd: process.cwd(),
    pattern: 'spec/unit/**/*.coffee',
    espowerOptions: {
        powerAssertVariableName: 'yourAssert',
        targetMethods: {
            oneArg: [
                'okay'
            ],
            twoArgs: [
                'equal',
                'customEqual'
            ]
        }
    }
});

To:

require('espower-coffee')({
    cwd: process.cwd(),
    pattern: 'spec/unit/**/*.coffee',
    espowerOptions: {
        patterns: [
            'yourAssert(value, [message])',
            'yourAssert.okay(value, [message])',
            'yourAssert.equal(actual, expected, [message])',
            'yourAssert.customEqual(actual, expected, [message])'
        ]
    }
});