Skip to content

Commit

Permalink
hmm
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman committed Apr 29, 2022
1 parent a2b665f commit 94f745c
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions apps/meteor/tests/end-to-end/api/19-statistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ describe('[Statistics]', function () {
.end(done);
});
});
it('should update the statistics when is provided the "refresh:true" query parameter', (done) => {
request
.get(api('statistics?refresh=true'))
.set(credentials)
.expect(200)
.expect((res) => {
expect(res.body).to.have.property('success', true);
expect(res.body).to.have.property('process');
expect(res.body.process).to.have.property('uptime');
expect(lastUptime).to.not.be.equal(res.body.process.uptime);
})
.end(done);
});
it('should return an object with the statistics', (done) => {
updatePermission('view-statistics', ['admin']).then(() => {
request
Expand All @@ -38,19 +51,6 @@ describe('[Statistics]', function () {
.end(done);
});
});
it('should update the statistics when is provided the "refresh:true" query parameter', (done) => {
request
.get(api('statistics?refresh=true'))
.set(credentials)
.expect(200)
.expect((res) => {
expect(res.body).to.have.property('success', true);
expect(res.body).to.have.property('process');
expect(res.body.process).to.have.property('uptime');
expect(lastUptime).to.not.be.equal(res.body.process.uptime);
})
.end(done);
});
});

describe('[/statistics.list]', () => {
Expand Down

0 comments on commit 94f745c

Please sign in to comment.