Browse Source

fix test bugs

main
James Fenn 7 months ago
parent
commit
0e0ba97c2a
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      gitrest/src/jsMain/kotlin/Client.kt
  2. +2
    -2
      npm/test.js

+ 2
- 2
gitrest/src/jsMain/kotlin/Client.kt View File

@@ -16,13 +16,13 @@ class Client(

val client = gitrest {
this.providers.forEach {
if (config.tokens != null) {
if (config?.tokens != null) {
this.providers.forEach {
it.tokens.putAll(config.tokens)
}
}

if (config.cache?.type == "disk") {
if (config?.cache?.type == "disk") {
this.cache = DiskCache(this)
}
}


+ 2
- 2
npm/test.js View File

@@ -1,6 +1,6 @@
const { RequestProvider } = require('./index.js');
const { Client } = require('./index.js');

let provider = new RequestProvider();
let provider = new Client();

// simple usability test, probably shouldn't break anytime soon...
provider.getUser("fennifith").then((user) => {


Loading…
Cancel
Save