ai/tests/plugin_test.js

18 lines
366 B
JavaScript
Raw Normal View History

2024-09-09 00:01:35 +08:00
import console from 'console'
import ai from 'ai'
// ai.set('aaa', 111)
// let aaa = ai.get('aaa')
// if (aaa !== 111) return 'set value error'
//
// try {
// ai.get('bbb')
// return 'no exception when getting non-existent key'
// } catch (ex){
// logger.error(ex.message, {stack:ex.stack})
// }
// logger.info('aaa')
// ai.remove('bbb')
//
return true