mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-25 09:56:15 -04:00
Fixed favicon not being loaded from url. (#6113)
* Fixed favicon not being loaded from url. * Fixed tests.
This commit is contained in:
parent
1a61994c61
commit
9e2c4bf781
2 changed files with 16 additions and 0 deletions
|
@ -51,6 +51,12 @@ describe(__filename, function () {
|
|||
assert(gotIcon.equals(wantCustomIcon));
|
||||
});
|
||||
|
||||
it('uses custom favicon from url', async function () {
|
||||
settings.favicon = 'https://etherpad.org/favicon.ico';
|
||||
await agent.get('/favicon.ico')
|
||||
.expect(302);
|
||||
});
|
||||
|
||||
it('uses custom favicon if set (absolute pathname)', async function () {
|
||||
settings.favicon = path.join(__dirname, 'favicon-test-custom.png');
|
||||
assert(path.isAbsolute(settings.favicon));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue