Skip to content

Commit

Permalink
#63 Remove unusful test
Browse files Browse the repository at this point in the history
  • Loading branch information
ceres3idoo committed Mar 8, 2019
1 parent bd120d5 commit 01d136d
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions tests/unit/commands/signCommand.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,22 +96,6 @@ describe('os sign', () => {
})

describe('sign create order', () => {
test('should raise ValidationError if the private key is not a valid ethereum private key', async() => {
const invalidPrivateKey = 'tests/fixtures/privateKeys/invalidPrivateKey.key'
const cliInputJson = MockCreateOrderDataToSign.build()

const expectedResult = [{
code: 'ValidationError',
field: 'privateKey',
message: 'privateKey is an invalid ethereum private key.',
}]

const result = await signCommand
.executeAsync({ privateKeyPath: invalidPrivateKey, cliInputJson: JSON.stringify(cliInputJson) })

expect(result).toMatchObject(expectedResult)
})

describe('should raise validationError if', () => {
const invalidEthereumAddressFields = ['exchangeAddress', 'maker', 'offerTokenAddress', 'wantTokenAddress']
test.each(invalidEthereumAddressFields)('should raise ValidationError if %o is not a valid ethereum address.', async(invalidEthereumAddressField) => {
Expand Down

0 comments on commit 01d136d

Please sign in to comment.