index.js 328 B

1234567891011121314151617
  1. /**
  2. * Imports
  3. */
  4. var relative = require('..')
  5. var path = require('path')
  6. var test = require('tape')
  7. /**
  8. * Tests
  9. */
  10. test('should work', function (t) {
  11. t.equal(relative('test/index.js', '.'), path.relative('test/index.js', '.'))
  12. t.equal(relative('test/index.js', '.'), path.relative('test/index.js', '.'))
  13. t.end()
  14. })