1 | import tap from 'tap'
|
2 |
|
3 | import { pathnameToFile } from '../lib/renderStaticEntries'
|
4 |
|
5 | tap.test('pathnameToFile', async (t) => {
|
6 | t.equal(pathnameToFile('/foo'), '/foo/index.html')
|
7 | t.equal(pathnameToFile('/foo/bar'), '/foo/bar/index.html')
|
8 | t.equal(pathnameToFile('/baz.html'), '/baz.html')
|
9 | t.equal(pathnameToFile('/baz.xml'), '/baz.xml')
|
10 | t.equal(pathnameToFile('/foo', 'json'), '/foo.json')
|
11 | })
|