Skip to content

Commit a0ec748

Browse files
docs(serverest): incluir logo no README e favicon na documentação
1 parent 6c8cad4 commit a0ec748

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
</b>
2020
</p>
2121

22+
<p align="center">
23+
<img alt="Logo do ServeRest" src="https://user-images.githubusercontent.com/29241659/115161869-6a017e80-a076-11eb-9bbe-c391eff410db.png" height="120">
24+
</p>
25+
2226
_ServeRest_ permite o estudo de:
2327
- Verbos *GET, POST, PUT* e *DELETE* com persistência de dados
2428
- Autenticação no header

docs/favicon.png

17 KB
Loading

src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ app.get('/', async (req, res) => {
6464
}
6565
res.sendFile(join(__dirname, pathDocumentacao))
6666
})
67-
app.get('/favicon.ico', (req, res) => { res.sendStatus(204) })
67+
app.get('/favicon.ico', (req, res) => { res.sendFile(join(__dirname, '../docs/favicon.png')) })
6868
app.get('/version', (req, res) => { res.status(200).send({ version }) })
6969

7070
/* istanbul ignore if */

test/integration/outros/generico.test.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ describe('GENERICO', () => {
2424
})
2525

2626
it('/favicon.ico', async () => {
27-
const { body } = await request
28-
.get('/favicon.ico')
29-
.expect(204)
30-
31-
chai.assert.deepEqual(body, {})
27+
await request.get('/favicon.ico').expect(200)
3228
})
3329

3430
it('Validar presença de headers de segurança', async () => {

0 commit comments

Comments
 (0)