Skip to content

Commit f74a364

Browse files
committed
bugfix: Wipe tests/zones before generation
It is possible for timezones to disappear (well, unlikely but still), and in that case there will be leftover tests for gone zones under tests/zones. So wipe tests/zones clean when generating (latest) tests. For versioned tests, the tests go under temp, which is wiped by default already.
1 parent e850f9f commit f74a364

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Gruntfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ module.exports = function(grunt) {
4343
},
4444

4545
clean: {
46-
data: ['temp']
46+
data: ['temp'],
47+
tests: ['tests/zones'],
4748
},
4849

4950
exec: {

tasks/data.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ module.exports = function (grunt) {
66

77
if (!grunt.option('dirty-run')) {
88
grunt.task.run('clean:data');
9+
if (version === 'latest') {
10+
grunt.task.run('clean:tests');
11+
}
912
}
1013

1114
grunt.task.run([

0 commit comments

Comments
 (0)