[cli] Fix new routing props to be case sensitive (#4341)

This PR fixes a bug where `vc dev` acted differently than real deployments which are supposed to have case sensitive `rewrites` and `redirects`.
This commit is contained in:
Steven
2020-05-11 15:55:11 -04:00
committed by GitHub
parent 378d62083c
commit c8e7b266bc
6 changed files with 45 additions and 1 deletions

View File

@@ -613,6 +613,20 @@ test(
})
);
test(
'[now dev] test rewrites and redirects is case sensitive',
testFixtureStdio('test-routing-case-sensitive', async testPath => {
await testPath(200, '/Path', 'UPPERCASE');
await testPath(200, '/path', 'lowercase');
await testPath(308, '/GoTo', 'Redirecting to /upper.html (308)', {
Location: '/upper.html',
});
await testPath(308, '/goto', 'Redirecting to /lower.html (308)', {
Location: '/lower.html',
});
})
);
test(
'[now dev] test cleanUrls serve correct content',
testFixtureStdio('test-clean-urls', async testPath => {