Skip to content

Commit 399dd81

Browse files
committed
added expiration tests
1 parent 49639b3 commit 399dd81

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/breinify-api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15730,14 +15730,14 @@ dependencyScope.jQuery = $;;
1573015730
}
1573115731

1573215732
// clean-up old split-test information (older than 7 days)
15733-
var testExpiration = new Date().getTime() - (7 * 24 * 60 * 1000);
15733+
var testExpiration = new Date().getTime() - 60 * 1000;// (7 * 24 * 60 * 1000);
1573415734
for (var key in this.splitTestData) {
1573515735
if (!this.splitTestData.hasOwnProperty(key)) {
1573615736
continue;
1573715737
}
1573815738

1573915739
var lastUpdated = this.splitTestData[key].lastUpdated;
15740-
if (typeof lastUpdated !== number || lastUpdated < testExpiration) {
15740+
if (typeof lastUpdated !== 'number' || lastUpdated < testExpiration) {
1574115741
delete this.splitTestData[key];
1574215742
}
1574315743
}

dist/breinify-api.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Breinify.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,14 @@
138138
}
139139

140140
// clean-up old split-test information (older than 7 days)
141-
var testExpiration = new Date().getTime() - (7 * 24 * 60 * 1000);
141+
var testExpiration = new Date().getTime() - 60 * 1000;// (7 * 24 * 60 * 1000);
142142
for (var key in this.splitTestData) {
143143
if (!this.splitTestData.hasOwnProperty(key)) {
144144
continue;
145145
}
146146

147147
var lastUpdated = this.splitTestData[key].lastUpdated;
148-
if (typeof lastUpdated !== number || lastUpdated < testExpiration) {
148+
if (typeof lastUpdated !== 'number' || lastUpdated < testExpiration) {
149149
delete this.splitTestData[key];
150150
}
151151
}

0 commit comments

Comments
 (0)