diff --git a/tests/credentials.nim b/tests/credentials.nim new file mode 100644 index 0000000..e03167c --- /dev/null +++ b/tests/credentials.nim @@ -0,0 +1,4 @@ +const + homeserver*: cstring = "" + username*: cstring = "" + password*: cstring = "" \ No newline at end of file diff --git a/tests/test1.nim b/tests/test1.nim index 3309c63..af71368 100644 --- a/tests/test1.nim +++ b/tests/test1.nim @@ -1,13 +1,6 @@ -import unittest -import jsconsole +import unittest, jsconsole, nimbotsdk, credentials -import nimbotsdk test "can login using username and password": - # TODO: import account credentials from a .gitignore'd config file - const - homeserver: cstring = "" - username: cstring = "" - password: cstring = "" let auth = newMatrixAuth(homeserver) let client = auth.passwordLogin(username, password)