Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 5c4211f

Browse files
author
vikasrohit
committed
SUP-2582, Upcoming SRMs should be ordered by most recent date
-- Fixed unit tests
1 parent f0399e1 commit 5c4211f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/my-srms/my-srms.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ describe('My SRMs Controller', function() {
7777
// by default it should load upcoming SRMs
7878
expect(mySRMs.statusFilter).to.equal('past');
7979
expect(mySRMs.srms).to.exist;
80-
expect(mySRMs.orderBy).to.equal('endDate');
80+
expect(mySRMs.orderBy).to.equal('codingEndAt');
8181
expect(mySRMs.reverseOrder).to.be.true;
8282
expect(mySRMs.srms.length).to.equal(srms.length - 1);
8383
expect(spy.withArgs(0).calledOnce);
@@ -107,7 +107,7 @@ describe('My SRMs Controller', function() {
107107
it('upcoming SRMs should be fetched', function() {
108108
expect(mySRMs.srms).to.exist;
109109
expect(mySRMs.statusFilter).to.equal('future');
110-
expect(mySRMs.orderBy).to.equal('startDate');
110+
expect(mySRMs.orderBy).to.equal('codingStartAt');
111111
expect(mySRMs.reverseOrder).to.be.false;
112112
expect(mySRMs.srms).to.exist;
113113
// should have one extra srm for past filter as per mocked method

0 commit comments

Comments
 (0)