mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
[ci] format
This commit is contained in:
parent
7f956f0795
commit
dbbd0a22e2
1 changed files with 3 additions and 3 deletions
|
@ -49,19 +49,19 @@ describe('Printing', () => {
|
|||
});
|
||||
|
||||
it('Properly handles force redirects', () => {
|
||||
const _redirects = new Redirects();
|
||||
const _redirects = new Redirects();
|
||||
_redirects.add({
|
||||
dynamic: false,
|
||||
input: '/a',
|
||||
target: '/b',
|
||||
status: 200,
|
||||
weight: 1,
|
||||
force: true
|
||||
force: true,
|
||||
});
|
||||
let out = _redirects.print();
|
||||
let parts = out.split(/\s+/);
|
||||
|
||||
const expectedParts = ['/a', '/b', '200!'];
|
||||
assert.deepEqual(parts, expectedParts);
|
||||
})
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue