From af0098f064d7084b9fe305a1a1e52403ed5061de Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Thu, 6 Oct 2016 10:29:55 -0700 Subject: [PATCH] remove badge count after each setBadgeCount test --- spec/api-app-spec.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/api-app-spec.js b/spec/api-app-spec.js index 69a0ecad455f..2afce4dc1672 100644 --- a/spec/api-app-spec.js +++ b/spec/api-app-spec.js @@ -278,6 +278,10 @@ describe('app module', function () { const shouldFail = process.platform === 'win32' || (process.platform === 'linux' && !app.isUnityRunning()) + afterEach(function () { + app.setBadgeCount(0) + }) + it('returns false when failed', function () { assert.equal(app.setBadgeCount(42), !shouldFail) }) @@ -285,7 +289,6 @@ describe('app module', function () { it('should set a badge count', function () { app.setBadgeCount(42) assert.equal(app.getBadgeCount(), shouldFail ? 0 : 42) - app.setBadgeCount(0) }) })