( path, path2 )
| 2 | |
| 3 | var paths = {}; |
| 4 | function getRelativePath ( path, path2 ) { |
| 5 | paths[ path ] = true; |
| 6 | return relative( path, path2 ); |
| 7 | } |
| 8 | |
| 9 | assert.equal( getRelativePath( 'foo/bar/baz', 'foo/baz/bar' ), normalize('../../baz/bar') ); |
| 10 | assert.deepEqual( paths, { 'foo/bar/baz': true }); |