We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c05f4c5 commit 14d8d57Copy full SHA for 14d8d57
plugins/reports/tests.js
@@ -164,6 +164,22 @@ describe('Testing Reports', function() {
164
});
165
166
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
183
184
185
0 commit comments