mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-07 14:02:48 +00:00
build: update dependencies
This commit is contained in:
@@ -12,9 +12,9 @@
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {SCBulkAddRoute, SCBulkDoneRoute, SCDish, SCMessage} from '@openstapps/core';
|
||||
import * as chai from 'chai';
|
||||
import {SCBulkAddRoute, SCBulkDoneRoute, SCDish, SCMessage, SCThingOriginType, SCThingType} from '@openstapps/core';
|
||||
import {expect} from 'chai';
|
||||
import * as chai from 'chai';
|
||||
import * as chaiAsPromised from 'chai-as-promised';
|
||||
import * as chaiSpies from 'chai-spies';
|
||||
import {suite, test} from 'mocha-typescript';
|
||||
@@ -46,11 +46,11 @@ export class BulkSpec {
|
||||
|
||||
expect(client.invokeRoute).not.to.have.been.called();
|
||||
|
||||
const bulk = new Bulk('dish', client, {
|
||||
const bulk = new Bulk(SCThingType.Dish, client, {
|
||||
expiration: moment().add(3600, 'seconds').format(),
|
||||
source: 'foo',
|
||||
state: 'in progress',
|
||||
type: 'dish',
|
||||
type: SCThingType.Dish,
|
||||
uid: 'bar',
|
||||
});
|
||||
|
||||
@@ -62,8 +62,9 @@ export class BulkSpec {
|
||||
origin: {
|
||||
indexed: moment().format(),
|
||||
name: 'bar',
|
||||
type: SCThingOriginType.Remote,
|
||||
},
|
||||
type: 'dish',
|
||||
type: SCThingType.Dish,
|
||||
uid: 'foo',
|
||||
};
|
||||
|
||||
@@ -76,11 +77,11 @@ export class BulkSpec {
|
||||
|
||||
@test
|
||||
async addFails() {
|
||||
const bulk = new Bulk('dish', client, {
|
||||
const bulk = new Bulk(SCThingType.Dish, client, {
|
||||
expiration: moment().add(3600, 'seconds').format(),
|
||||
source: 'foo',
|
||||
state: 'in progress',
|
||||
type: 'dish',
|
||||
type: SCThingType.Dish,
|
||||
uid: 'bar',
|
||||
});
|
||||
|
||||
@@ -93,8 +94,9 @@ export class BulkSpec {
|
||||
origin: {
|
||||
indexed: moment().format(),
|
||||
name: 'bar',
|
||||
type: SCThingOriginType.Remote,
|
||||
},
|
||||
type: 'message',
|
||||
type: SCThingType.Message,
|
||||
uid: 'foo',
|
||||
};
|
||||
|
||||
@@ -108,11 +110,11 @@ export class BulkSpec {
|
||||
@test
|
||||
async construct() {
|
||||
expect(() => {
|
||||
return new Bulk('dish', client, {
|
||||
return new Bulk(SCThingType.Dish, client, {
|
||||
expiration: moment().add(3600, 'seconds').format(),
|
||||
source: 'foo',
|
||||
state: 'in progress',
|
||||
type: 'dish',
|
||||
type: SCThingType.Dish,
|
||||
uid: 'bar',
|
||||
});
|
||||
}).not.to.throw();
|
||||
@@ -126,11 +128,11 @@ export class BulkSpec {
|
||||
|
||||
expect(client.invokeRoute).not.to.have.been.called();
|
||||
|
||||
const bulk = new Bulk('dish', client, {
|
||||
const bulk = new Bulk(SCThingType.Dish, client, {
|
||||
expiration: moment().add(3600, 'seconds').format(),
|
||||
source: 'foo',
|
||||
state: 'in progress',
|
||||
type: 'dish',
|
||||
type: SCThingType.Dish,
|
||||
uid: 'bar',
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user