Skip to content

Commit 38592fc

Browse files
committed
Add two more tests, add missing spaces
1 parent 0204b04 commit 38592fc

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/javascript/_common/__tests__/utility.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,14 @@ describe('Utility', () => {
161161
expect(Utility.unique([{ a: '1233', b: '2' }, { a: '1233', b: '2' }, { a: '1234', b: '2' },], 'a'))
162162
.to.deep.equal([{ a: '1233', b: '2' }, { a: '1234', b: '2' }]);
163163
});
164-
it('Works with invalid values', () => {
164+
165+
it('works with faulty arguments', () => {
165166
expect(Utility.unique([], 'a')).to.have.lengthOf(0);
166167
expect(Utility.unique([], 'a')).to.deep.equal([]);
167168
expect(Utility.unique([{ a: 1 }, { b: 2 }, { c: 3 }], 'd')).to.have.lengthOf(3);
168-
expect(Utility.unique([{ a: 1 }, { b: 2 }, { c: 3 }], 'd')).to.deep.equal([{ a: 1 }, { b: 2 }, { c: 3 }]);
169-
169+
expect(Utility.unique([{ a: 1 }, { a: 1 }, { b: 2 }, { c: 3 }], 'd')).to.deep.equal([{ a: 1 }, { a: 1 }, { b: 2 }, { c: 3 }]);
170+
expect(Utility.unique([{ a: 1 }, { b: 2 }, { c: 3 }], '')).to.have.lengthOf(3);
171+
expect(Utility.unique([{ a: 1 }, { a: 1 }, { b: 2 }, { c: 3 }], '')).to.deep.equal([{ a: 1 }, { a: 1 }, { b: 2 }, { c: 3 }]);
170172
});
171173
});
172174
});

src/javascript/app_2/Stores/Modules/Contract/Helpers/chart-marker-helpers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export const createMarkerSpotExit = (contract_info, tick, idx) => {
7878
if (!contract_info.exit_tick_time || isUserSold(contract_info)) return false;
7979

8080
const spot_count = getSpotCount(contract_info, idx);
81+
8182
return createMarkerConfig(
8283
MARKER_TYPES_CONFIG.SPOT_EXIT.type,
8384
+tick.epoch,

0 commit comments

Comments
 (0)