Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it ('get user me should ok', done => {
UserApi.getUserMe()
.subscribe(userMe => {
expect(userMe._id).to.not.be.undefined
expect(userMe.name).to.equal('Teambition FE Test')
done()
})
})
})
'use strict'
import { setToken, setAPIHost } from 'teambition-sdk'
setToken('GPUXVXGmw80g3NXGDjoy4myNIXE=puqCzvUC3bf16cb4ebc4bfab1b7cfbddf5eba58ce0faf0d1e0ac47e4b11ce800bca1075bef784b5f2f482c7b88d99b783c09c8a79142fc0482599314e3a7659f74d04426a047983e82eff41c6525a0187e32b3d2db7f802571bbde66a78ffd0a0f57ea4d')
setAPIHost('http://project.ci/api/')
export * from './apis/UserApi'
mocha.run()
'use strict'
import { setToken, setAPIHost } from 'teambition-sdk'
setToken('GPUXVXGmw80g3NXGDjoy4myNIXE=puqCzvUC3bf16cb4ebc4bfab1b7cfbddf5eba58ce0faf0d1e0ac47e4b11ce800bca1075bef784b5f2f482c7b88d99b783c09c8a79142fc0482599314e3a7659f74d04426a047983e82eff41c6525a0187e32b3d2db7f802571bbde66a78ffd0a0f57ea4d')
setAPIHost('http://project.ci/api/')
export * from './apis/UserApi'
mocha.run()