summaryrefslogtreecommitdiff
path: root/date-fns/testWithoutLocales.js
diff options
context:
space:
mode:
Diffstat (limited to 'date-fns/testWithoutLocales.js')
-rw-r--r--date-fns/testWithoutLocales.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/date-fns/testWithoutLocales.js b/date-fns/testWithoutLocales.js
new file mode 100644
index 0000000..3552b7b
--- /dev/null
+++ b/date-fns/testWithoutLocales.js
@@ -0,0 +1,7 @@
+var testsContext = require.context('./src/', true, /\/test\.js$/)
+testsContext
+ .keys()
+ .filter(function (test) {
+ return !test.match(/\.\/locale\//)
+ })
+ .forEach(testsContext)