Skip to content
This repository was archived by the owner on Aug 12, 2023. It is now read-only.

Commit c3a6fb5

Browse files
committed
Fix tests
1 parent e02e59f commit c3a6fb5

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

src/app/routes/v1/util/__snapshots__/transform-fill.test.js.snap

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Object {
3939
exports[`transformFill should transform V1 fill 1`] = `
4040
Object {
4141
"affiliate": null,
42+
"apps": Array [],
4243
"assets": Array [
4344
Object {
4445
"amount": "7.1373405",
@@ -108,11 +109,7 @@ Object {
108109
"orderHash": "0xd7cbdddb68cfa6216e867227a4cb8ca281e0d82921000b4b977d6038535482f5",
109110
"protocolFee": undefined,
110111
"protocolVersion": 1,
111-
"relayer": Object {
112-
"imageUrl": "https://resources.0xtracker.com/logos/ethfinex.png",
113-
"name": "Ethfinex",
114-
"slug": "ethfinex",
115-
},
112+
"relayer": null,
116113
"senderAddress": undefined,
117114
"status": "successful",
118115
"takerAddress": "0xe269e891a2ec8585a378882ffa531141205e92e9",
@@ -162,6 +159,7 @@ Object {
162159
exports[`transformFill should transform V2 fill 1`] = `
163160
Object {
164161
"affiliate": null,
162+
"apps": Array [],
165163
"assets": Array [
166164
Object {
167165
"amount": "1",
@@ -231,11 +229,7 @@ Object {
231229
"orderHash": "0xd7cbdddb68cfa6216e867227a4cb8ca281e0d82921000b4b977d6038535482f5",
232230
"protocolFee": undefined,
233231
"protocolVersion": 2,
234-
"relayer": Object {
235-
"imageUrl": "https://resources.0xtracker.com/logos/ethfinex.png",
236-
"name": "Ethfinex",
237-
"slug": "ethfinex",
238-
},
232+
"relayer": null,
239233
"senderAddress": undefined,
240234
"status": "successful",
241235
"takerAddress": "0xe269e891a2ec8585a378882ffa531141205e92e9",

src/app/routes/v1/util/transform-fill.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const { BigNumber } = require('@0xproject/utils');
44
const { FILL_ACTOR } = require('../../../../constants');
55
const AXIE_FIXTURE = require('../../../../fixtures/tokens/axie');
66
const BRAHMA_FIXTURE = require('../../../../fixtures/tokens/brahma');
7-
const ETHFINEX_FIXTURE = require('../../../../fixtures/relayers/ethfinex');
87
const WETH_FIXTURE = require('../../../../fixtures/tokens/weth');
98

109
const transformFill = require('./transform-fill');
@@ -50,6 +49,7 @@ const wethMaker = {
5049

5150
const simpleFill = {
5251
assets: [axieMaker, wethTaker],
52+
attributions: [],
5353
id: '5b9107e00d05f400042e3494',
5454
conversions: {
5555
USD: {
@@ -66,8 +66,6 @@ const simpleFill = {
6666
orderHash:
6767
'0xd7cbdddb68cfa6216e867227a4cb8ca281e0d82921000b4b977d6038535482f5',
6868
protocolVersion: 2,
69-
relayerId: 21,
70-
relayer: ETHFINEX_FIXTURE,
7169
status: 1,
7270
taker: '0xe269e891a2ec8585a378882ffa531141205e92e9',
7371
takerFee: 5000000000000000000,

0 commit comments

Comments
 (0)