mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 17:12:43 +00:00
refactor: adjust code to updated dependencies
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import {Label} from '@openstapps/gitlab-api/lib/types';
|
import {Label} from '@openstapps/gitlab-api/lib/types';
|
||||||
import * as moment from 'moment';
|
import moment from 'moment';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List of schools with their IDs
|
* List of schools with their IDs
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import {asyncPool} from '@krlwlfrt/async-pool';
|
|||||||
import {Api} from '@openstapps/gitlab-api';
|
import {Api} from '@openstapps/gitlab-api';
|
||||||
import {Issue, IssueState, MembershipScope, MergeRequestState, Project, User} from '@openstapps/gitlab-api/lib/types';
|
import {Issue, IssueState, MembershipScope, MergeRequestState, Project, User} from '@openstapps/gitlab-api/lib/types';
|
||||||
import {Logger} from '@openstapps/logger';
|
import {Logger} from '@openstapps/logger';
|
||||||
import * as moment from 'moment';
|
import moment from 'moment';
|
||||||
import {render} from 'mustache';
|
import {render} from 'mustache';
|
||||||
import {join, resolve} from 'path';
|
import {join, resolve} from 'path';
|
||||||
import {cwd} from 'process';
|
import {cwd} from 'process';
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import {asyncPool} from '@krlwlfrt/async-pool';
|
|||||||
import {Api} from '@openstapps/gitlab-api';
|
import {Api} from '@openstapps/gitlab-api';
|
||||||
import {IssueState, Scope} from '@openstapps/gitlab-api/lib/types';
|
import {IssueState, Scope} from '@openstapps/gitlab-api/lib/types';
|
||||||
import {Logger} from '@openstapps/logger';
|
import {Logger} from '@openstapps/logger';
|
||||||
import * as moment from 'moment';
|
import moment from 'moment';
|
||||||
import {flatten2dArray} from '../common';
|
import {flatten2dArray} from '../common';
|
||||||
import {CONCURRENCY, GROUPS, LAST_MEETING, NOTE_PREFIX} from '../configuration';
|
import {CONCURRENCY, GROUPS, LAST_MEETING, NOTE_PREFIX} from '../configuration';
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import * as chai from 'chai';
|
import * as chai from 'chai';
|
||||||
import {expect} from 'chai';
|
import {expect} from 'chai';
|
||||||
import * as chaiAsPromised from 'chai-as-promised';
|
import chaiAsPromised from 'chai-as-promised';
|
||||||
import {execSync} from 'child_process';
|
import {execSync} from 'child_process';
|
||||||
import {suite, test} from 'mocha-typescript';
|
import {suite, test} from 'mocha-typescript';
|
||||||
import {join} from 'path';
|
import {join} from 'path';
|
||||||
@@ -33,11 +33,11 @@ export class GetUsedVersionsSpec {
|
|||||||
|
|
||||||
@test
|
@test
|
||||||
async 'get used version'() {
|
async 'get used version'() {
|
||||||
expect(await getUsedVersion(join(__dirname, '..'), '@krlwlfrt/async-pool')).to.be.equal('0.1.0');
|
expect(await getUsedVersion(join(__dirname, '..'), '@krlwlfrt/async-pool')).to.be.equal('0.2.1');
|
||||||
}
|
}
|
||||||
|
|
||||||
@test
|
@test
|
||||||
async 'get used version major minor'() {
|
async 'get used version major minor'() {
|
||||||
expect(await getUsedVersionMajorMinor(join(__dirname, '..'), '@krlwlfrt/async-pool')).to.be.equal('0.1');
|
expect(await getUsedVersionMajorMinor(join(__dirname, '..'), '@krlwlfrt/async-pool')).to.be.equal('0.2');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user