aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@soyuka/exists-sync/test.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@soyuka/exists-sync/test.js')
-rw-r--r--node_modules/@soyuka/exists-sync/test.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/@soyuka/exists-sync/test.js b/node_modules/@soyuka/exists-sync/test.js
new file mode 100644
index 000000000..7125b58ec
--- /dev/null
+++ b/node_modules/@soyuka/exists-sync/test.js
@@ -0,0 +1,13 @@
+'use strict'
+const existsSync = require('./index.js')
+const assert = require('assert')
+
+describe('exists', function() {
+ it('should exists', function() {
+ assert(existsSync('./package.json'))
+ })
+
+ it('should not exists', function() {
+ assert(!existsSync('./nonexistant'))
+ })
+})