Skip to content

Commit

Permalink
adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bezoerb committed Oct 6, 2023
1 parent 3fb78b6 commit 6362cc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/file.test.js
Expand Up @@ -279,7 +279,7 @@ test('Compute document base (with base option)', async () => {
{filepath: `http://localhost:${port}/folder/generate-default.html`, expected: '/folder'},
{filepath: `http://localhost:${port}/folder/head.html`, expected: '/folder'},
{filepath: `http://localhost:${port}/generate-default.html`, expected: '/'},
{filepath: `http://localhost:${port}/folder`, expected: '/'},
{filepath: `http://localhost:${port}/folder`, expected: '/folder'},
{filepath: `http://localhost:${port}/folder/`, expected: '/folder'},
{filepath: path.join(__dirname, 'fixtures/folder/subfolder/head.html'), expected: '/folder/subfolder'},
{filepath: path.join(__dirname, 'fixtures/folder/generate-default.html'), expected: '/folder'},
Expand All @@ -306,7 +306,7 @@ test('Compute document base (with base option)', async () => {
test('Compute document base (without base option)', async () => {
const vinyls = await Promise.all(
[
{filepath: `http://localhost:${port}/folder`, expected: '/'},
{filepath: `http://localhost:${port}/folder`, expected: '/folder'},
{filepath: `http://localhost:${port}/folder/`, expected: '/folder'},
{filepath: path.join(__dirname, 'fixtures/folder/subfolder/head.html'), expected: '/folder/subfolder'},
{filepath: path.join(__dirname, 'fixtures/folder/generate-default.html'), expected: '/folder'},
Expand Down Expand Up @@ -339,7 +339,7 @@ test('Get document', async () => {
});

const tests = [
{filepath: `http://localhost:${port}/folder`, expected: '/folder'},
{filepath: `http://localhost:${port}/folder`, expected: '/folder/index.html'},
{filepath: `http://localhost:${port}/folder/`, expected: '/folder/index.html'},
{filepath: path.join(__dirname, 'fixtures/folder/subfolder/head.html'), expected: '/folder/subfolder/head.html'},
{
Expand Down

0 comments on commit 6362cc0

Please sign in to comment.