fix: createRestManager unit test bug

This commit is contained in:
Skillz4Killz
2023-03-16 14:21:06 +00:00
parent 40c19da9ca
commit 5b2fcd18a1
+5 -2
View File
@@ -22,7 +22,10 @@ describe('[rest] manager', () => {
const options = {
token,
version: 9,
baseUrl: 'https://localhost:8000',
proxy: {
baseUrl: 'https://localhost:8000',
authorization: token
}
} as const
const rest = createRestManager(options)
@@ -32,7 +35,7 @@ describe('[rest] manager', () => {
})
it('With a base url', () => {
expect(rest.baseUrl).to.be.equal(options.baseUrl)
expect(rest.baseUrl).to.be.equal(options.proxy.baseUrl)
})
it('With a falsy token', () => {