Skip to content

Commit 14d8d57

Browse files
committed
[tests] clear reports test
1 parent c05f4c5 commit 14d8d57

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

plugins/reports/tests.js

+16
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,22 @@ describe('Testing Reports', function() {
164164
});
165165
});
166166

167+
describe('reset app', function() {
168+
it('should reset data', function(done) {
169+
var params = {app_id: testUtils.get("APP_ID"), "period": "reset"};
170+
request
171+
.get(getRequestURL('/i/apps/reset') + "&args=" + JSON.stringify(params))
172+
.expect(200)
173+
.end(function(err, res) {
174+
if (err) {
175+
return done(err);
176+
}
177+
var ob = JSON.parse(res.text);
178+
ob.should.have.property('result', 'Success');
179+
setTimeout(done, 500 * testUtils.testScalingFactor);
180+
});
181+
});
182+
});
167183

168184
});
169185
});

0 commit comments

Comments
 (0)