Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test('with no store', assert => {
AsyncStorage.clear()
.then(() => uniqueId())
.then(id => {
theId = id
assert.ok(id)
assert.end()
})
.catch(error => assert.error(error))
})