All files / src/models user.js

100% Statements 12/12
100% Branches 4/4
100% Functions 2/2
100% Lines 12/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13193x 193x 193x 193x 19x 19x 193x 193x 8x 8x 8x 8x  
import { get } from '@clevercloud/client/esm/api/v2/organisation.js';
import { sendToApi } from './send-to-api.js';
 
export function getCurrent() {
  return get({}).then(sendToApi);
}
 
export function getCurrentId() {
  return get({})
    .then(sendToApi)
    .then(({ id }) => id);
}