Merge pull request #194 from mozilla/fix-187
Import from helpers; fix #187
This commit is contained in:
Коммит
e3c9110fe2
|
@ -139,7 +139,7 @@ it('should do something promise-y', () => {
|
|||
To test for rejection you can use this pattern:
|
||||
|
||||
```javascript
|
||||
import { unexpectedSuccess } from 'utils';
|
||||
import { unexpectedSuccess } from './helpers';
|
||||
...
|
||||
it('should reject because of x', () => {
|
||||
return somePromiseCall()
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import * as utils from 'utils';
|
||||
import { unexpectedSuccess } from './helpers';
|
||||
|
||||
|
||||
describe('utils.singleLineString()', function() {
|
||||
|
@ -80,7 +81,7 @@ describe('utils.checkMinNodeVersion()', function() {
|
|||
version: 'v0.12.4',
|
||||
};
|
||||
return utils.checkMinNodeVersion('0.12.7', fakeProcess)
|
||||
.then(utils.unexpectedSuccess)
|
||||
.then(unexpectedSuccess)
|
||||
.catch((err) => {
|
||||
assert.include(err.message, 'Node version must be 0.12.7 or greater');
|
||||
});
|
||||
|
|
|
@ -5,8 +5,8 @@ import * as messages from 'messages';
|
|||
|
||||
import CSSScanner from 'scanners/css';
|
||||
import { DuplicateZipEntryError } from 'exceptions';
|
||||
import { fakeMessageData, validRDF } from './helpers';
|
||||
import { singleLineString, unexpectedSuccess } from 'utils';
|
||||
import { fakeMessageData, unexpectedSuccess, validRDF } from './helpers';
|
||||
import { singleLineString } from 'utils';
|
||||
|
||||
|
||||
describe('Validator', function() {
|
||||
|
|
|
@ -3,7 +3,7 @@ import { Readable } from 'stream';
|
|||
import Xpi from 'xpi';
|
||||
import { DEFLATE_COMPRESSION, NO_COMPRESSION } from 'const';
|
||||
import { DuplicateZipEntryError } from 'exceptions';
|
||||
import { unexpectedSuccess } from 'utils';
|
||||
import { unexpectedSuccess } from './helpers';
|
||||
|
||||
const defaultData = {
|
||||
compressionMethod: DEFLATE_COMPRESSION,
|
||||
|
|
Загрузка…
Ссылка в новой задаче