-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: ++periodos-letivos * fix: parametros desnecessarios removidos parametros desnecessários na funcao getPeriodosLetivos * dumped to v0.8.0
- Loading branch information
Showing
5 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
require('dotenv').config() | ||
import Debug from 'debug' | ||
const debug = new Debug('spec:periodos-letivos') | ||
|
||
import { SuapiV2 } from '../src/index' | ||
import { expect } from '@jest/globals' | ||
|
||
const { MATRICULA, SENHA } = process.env | ||
|
||
test('deve retornar os periodos letivos', async () => { | ||
const authToken: string = await SuapiV2.getAuthToken(String(MATRICULA), String(SENHA)) | ||
|
||
const periodosLetivos = await SuapiV2.getPeriodosLetivos(authToken) | ||
debug(periodosLetivos) | ||
|
||
expect(periodosLetivos).toBeDefined() | ||
}) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default interface IPeriodoLetivo { | ||
ano_letivo: number, | ||
periodo_letivo: number | ||
} |