mirror of
https://github.com/HeyPuter/puter.git
synced 2026-07-28 18:01:55 +00:00
16 lines
413 B
JavaScript
16 lines
413 B
JavaScript
const chai = require('chai');
|
|
chai.use(require('chai-as-promised'))
|
|
const expect = chai.expect;
|
|
|
|
module.exports = {
|
|
name: 'whoami',
|
|
description: 'a demo test for puterjs',
|
|
do: async t => {
|
|
const puter = t.puter;
|
|
|
|
await t.case('demo (whoami)', async () => {
|
|
const result = await puter.auth.whoami();
|
|
expect(result.username).to.equal('admin');
|
|
});
|
|
}
|
|
} |