@atlaskit/build-utils
Version:
Collection of utilities to used during the release process of Atlaskit
15 lines (12 loc) • 516 B
JavaScript
// @flow
const bolt = require('bolt');
const { getWorkspacesSync } = require('./../../getWorkspacesSync');
describe('getWorkspacesSync >', () => {
// TODO: AFP-1382 skipped because it's been flakey
test.skip('should return the same results as getWorkspaces', async () => {
const resultsSync = getWorkspacesSync();
const resultsAsync = await bolt.getWorkspaces();
expect(resultsSync.length).toBe(resultsAsync.length);
expect(resultsSync).toEqual(expect.arrayContaining(resultsAsync));
});
});