aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@soyuka/exists-sync/test.js
blob: 7125b58ec0c6ca0abeace06448ccec8f1057bf4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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')) 
  })
})