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 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 21x 1x 21x 1x 1x 6x 6x 6x 6x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 3x 3x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 4x 4x 4x 4x 4x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 4x 4x 4x 4x 4x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 4x 4x 4x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | /* eslint-disable @typescript-eslint/no-explicit-any */
import {expect} from 'chai';
import sinon, {assert, match} from 'sinon';
import {
CarColorAlreadyInUseError,
CarInUseError,
CarNameAlreadyInUseError,
CarNotFoundError,
InternalError,
MaxCarAmountReachedError,
MembershipNotFoundError,
NotAdminOfGroupError,
NotDriverOfCarError,
NotMemberOfGroupError,
} from '../../errors';
import {
Membership,
MembershipRepository,
MembershipService,
} from '../membership';
import CarRepository from './car-repository';
import CarService from './car-service';
import config from '../../config';
import sequelize from '../../db';
import {GroupCarAction, GroupNotificationService} from '../group';
describe('CarService', function() {
const user: any = {
id: 1,
};
let fakeCar: any;
beforeEach(function() {
fakeCar = {
groupId: 1,
carId: 1,
color: 'Blue',
name: 'CAR',
get: sinon.stub().resolvesThis(),
};
});
afterEach(function() {
sinon.restore();
});
describe('create', function() {
let membershipRepFindStub: sinon.SinonStub;
let carRepCreateStub: sinon.SinonStub;
let carRepFindByGroup: sinon.SinonStub;
let groupNotifStub: sinon.SinonStub;
beforeEach(function() {
membershipRepFindStub = sinon.stub(MembershipRepository, 'findById');
carRepCreateStub = sinon.stub(CarRepository, 'create');
carRepFindByGroup = sinon.stub(CarRepository, 'findByGroup');
groupNotifStub = sinon.stub(GroupNotificationService, 'notifyCarUpdate');
});
describe('throws NotAdminOfGroup', function() {
it('if user is not a member of the group', async function() {
membershipRepFindStub.rejects(
new MembershipNotFoundError({groupId: 1, userId: 1}),
);
await expect(CarService.create(
user,
fakeCar.groupId,
fakeCar.name,
fakeCar.color as any,
)).to.be.rejectedWith(NotAdminOfGroupError);
assert.calledOnceWithExactly(
membershipRepFindStub,
match({groupId: fakeCar.groupId, userId: user.id}),
);
assert.notCalled(carRepFindByGroup);
assert.notCalled(carRepCreateStub);
assert.notCalled(groupNotifStub);
});
it('if user is a member but not an admin of the group', async function() {
const fakeMembership = {
groupId: fakeCar.groupId,
userId: user.id,
isAdmin: false,
};
membershipRepFindStub.resolves(fakeMembership as any);
await expect(CarService.create(
user,
fakeCar.groupId,
fakeCar.name,
fakeCar.color as any,
)).to.be.rejectedWith(NotAdminOfGroupError);
assert.calledOnceWithExactly(
membershipRepFindStub,
match({groupId: fakeCar.groupId, userId: user.id}),
);
assert.notCalled(carRepFindByGroup);
assert.notCalled(carRepCreateStub);
assert.notCalled(groupNotifStub);
});
});
it('throws MaxCarAmountReachedError if group already ' +
'has max amount of cars', async function() {
const fakeMembership = {
groupId: fakeCar.groupId,
userId: user.id,
isAdmin: true,
};
membershipRepFindStub.resolves(fakeMembership as any);
const maxAmount = config.group.maxCars;
const cars = Array(maxAmount).fill({name: 'TEST'});
carRepFindByGroup.resolves(cars);
await expect(CarService.create(
user,
fakeCar.groupId,
fakeCar.name,
fakeCar.color as any,
)).to.be.rejectedWith(MaxCarAmountReachedError);
assert.calledOnceWithExactly(
membershipRepFindStub,
match({groupId: fakeCar.groupId, userId: user.id}),
);
assert.calledOnceWithExactly(carRepFindByGroup, fakeCar.groupId);
assert.notCalled(carRepCreateStub);
assert.notCalled(groupNotifStub);
});
it('throws CarNameAlreadyInUserError if a car with the ' +
'name already exists in that group', async function() {
const fakeMembership = {
groupId: fakeCar.groupId,
userId: user.id,
isAdmin: true,
};
membershipRepFindStub.resolves(fakeMembership as any);
carRepFindByGroup.resolves([{name: fakeCar.name}]);
await expect(CarService.create(
user,
fakeCar.groupId,
fakeCar.name,
fakeCar.color as any,
)).to.be.rejectedWith(CarNameAlreadyInUseError);
assert.calledOnceWithExactly(
membershipRepFindStub,
match({groupId: fakeCar.groupId, userId: user.id}),
);
assert.calledOnceWithExactly(carRepFindByGroup, fakeCar.groupId);
assert.notCalled(carRepCreateStub);
assert.notCalled(groupNotifStub);
});
it('throws CarColorAlreadyInUseError if a car with the '+
'color already exists in that group', async function() {
const fakeMembership = {
groupId: fakeCar.groupId,
userId: user.id,
isAdmin: true,
};
membershipRepFindStub.resolves(fakeMembership as any);
carRepFindByGroup.resolves([{
name: fakeCar.name + ' more',
color: fakeCar.color,
}]);
await expect(CarService.create(
user,
fakeCar.groupId,
fakeCar.name,
fakeCar.color as any,
)).to.be.rejectedWith(CarColorAlreadyInUseError);
assert.calledOnceWithExactly(
membershipRepFindStub,
match({groupId: fakeCar.groupId, userId: user.id}),
);
assert.calledOnceWithExactly(carRepFindByGroup, fakeCar.groupId);
assert.notCalled(carRepCreateStub);
assert.notCalled(groupNotifStub);
});
it('creates the car and returns the plain object', async function() {
const fakeMembership = {
groupId: fakeCar.groupId,
userId: user.id,
isAdmin: true,
};
membershipRepFindStub.resolves(fakeMembership as any);
carRepFindByGroup.resolves([]);
carRepCreateStub.resolves(fakeCar);
await expect(CarService.create(
user,
fakeCar.groupId,
fakeCar.name,
fakeCar.color as any,
)).to.eventually.equal(fakeCar as any);
assert.calledOnceWithExactly(
membershipRepFindStub,
match({groupId: fakeCar.groupId, userId: user.id}),
);
assert.calledOnceWithExactly(
carRepCreateStub,
fakeCar.groupId,
fakeCar.name,
fakeCar.color,
match.falsy,
);
assert.calledOnceWithExactly(fakeCar.get, match({plain: true}));
assert.calledOnceWithExactly(carRepFindByGroup, fakeCar.groupId);
assert.calledOnceWithExactly(
groupNotifStub,
fakeCar.groupId,
fakeCar.carId,
GroupCarAction.Add,
fakeCar,
);
});
});
describe('findByGroup', function() {
let membershipFindByIdStub: sinon.SinonStub;
let carRepFindByGroup: sinon.SinonStub;
beforeEach(function() {
membershipFindByIdStub = sinon.stub(MembershipRepository, 'findById');
carRepFindByGroup = sinon.stub(CarRepository, 'findByGroup');
});
it('throws NotMemberOfGroup if user is not ' +
'member of the group', async function() {
const user: any = {
id: 1,
};
const groupId = 10;
membershipFindByIdStub.rejects(
new MembershipNotFoundError({groupId, userId: user.id}));
await expect(CarService.findByGroup(user, groupId))
.to.eventually.be.rejectedWith(NotMemberOfGroupError);
assert.calledOnceWithExactly(
membershipFindByIdStub,
match({groupId, userId: user.id}),
);
assert.notCalled(carRepFindByGroup);
});
it('if checking membership throws an error, ' +
'it will be rethrown', async function() {
const user: any = {
id: 1,
};
const groupId = 10;
const error = new Error('Should be forwarded');
membershipFindByIdStub.rejects(error);
await expect(CarService.findByGroup(user, groupId))
.to.eventually.be.rejectedWith(error);
assert.calledOnceWithExactly(
membershipFindByIdStub,
match({groupId, userId: user.id}),
);
assert.notCalled(carRepFindByGroup);
});
it('calls CarRepository.findByGroup with ' +
'the correct arguments', async function() {
const user: any = {
id: 1,
};
const groupId = 10;
membershipFindByIdStub.resolves();
const cars = [
{
groupId: 10,
id: 1,
name: 'CAR-1',
},
{
groupId: 10,
id: 2,
name: 'CAR-2',
},
];
carRepFindByGroup.resolves(cars);
await expect(CarService.findByGroup(user, groupId))
.to.eventually.be.equal(cars);
assert.calledOnceWithExactly(
membershipFindByIdStub,
match({groupId, userId: user.id}),
);
assert.calledOnceWithExactly(carRepFindByGroup, groupId, match.any);
});
});
describe('driveCar', function() {
let membershipServiceIsMember: sinon.SinonStub;
let transactionStub: sinon.SinonStub;
let carRepFindById: sinon.SinonStub;
let t: {commit: sinon.SinonStub, rollback: sinon.SinonStub};
let groupNotifStub: sinon.SinonStub;
const user: any = {
id: 1,
};
beforeEach(function() {
t = {
commit: sinon.stub(),
rollback: sinon.stub(),
};
membershipServiceIsMember = sinon.stub(MembershipService, 'isMember');
transactionStub = sinon.stub(sequelize, 'transaction').resolves(t as any);
carRepFindById = sinon.stub(CarRepository, 'findById');
groupNotifStub = sinon.stub(GroupNotificationService, 'notifyCarUpdate');
});
it('throws NotMemberOfGroupError if current ' +
'user is not a member of the group', async function() {
membershipServiceIsMember.resolves(false);
await expect(CarService.driveCar(user, 2, 3))
.to.eventually.be.rejectedWith(NotMemberOfGroupError);
assert.notCalled(transactionStub);
assert.notCalled(carRepFindById);
assert.notCalled(t.commit);
assert.notCalled(t.rollback);
assert.notCalled(groupNotifStub);
});
it('throws CarInUseError if user has already a driver', async function() {
membershipServiceIsMember.resolves(true);
const car = {
groupId: 2,
carId: 3,
name: 'Car',
driverId: 4,
update: sinon.stub(),
};
carRepFindById.resolves(car as any);
await expect(CarService.driveCar(user, car.groupId, car.carId))
.to.eventually.be.rejectedWith(CarInUseError);
assert.calledOnceWithExactly(
carRepFindById,
match({carId: car.carId, groupId: car.groupId}),
match({transaction: t}),
);
assert.calledOnce(transactionStub);
assert.calledOnce(t.rollback);
assert.notCalled(car.update);
assert.notCalled(t.commit);
assert.notCalled(groupNotifStub);
});
it('throws InternalError if error occurred while registering ' +
'which is not CarInUseError or NotMemberOfGroupError', async function() {
membershipServiceIsMember.resolves(true);
carRepFindById.rejects(new Error('Should not be thrown'));
await expect(CarService.driveCar(user, 1, 2))
.to.eventually.be.rejectedWith(InternalError);
assert.calledOnceWithExactly(
carRepFindById,
match({carId: 2, groupId: 1}),
match({transaction: t}),
);
assert.calledOnce(t.rollback);
assert.calledOnce(transactionStub);
assert.notCalled(groupNotifStub);
});
it('sets driverId to id of current user', async function() {
membershipServiceIsMember.resolves(true);
const car = {
groupId: 2,
carId: 3,
name: 'Car',
driverId: null,
update: sinon.stub().resolvesThis(),
get: sinon.stub().returnsThis(),
};
carRepFindById.resolves(car as any);
await expect(CarService.driveCar(user, car.groupId, car.carId))
.to.eventually.be.fulfilled;
assert.calledOnceWithExactly(
carRepFindById,
match({carId: car.carId, groupId: car.groupId}),
match({transaction: t}),
);
assert.calledOnce(transactionStub);
assert.calledOnce(t.commit);
assert.calledOnceWithMatch(
car.update,
match({driverId: user.id}),
match({transaction: t}),
);
assert.calledOnceWithExactly(car.get, match({plain: true}));
assert.calledOnceWithExactly(
groupNotifStub,
car.groupId,
car.carId,
GroupCarAction.Drive,
car,
);
assert.notCalled(t.rollback);
});
});
describe('parkCar', function() {
let isMemberStub: sinon.SinonStub;
let transactionStub: sinon.SinonStub;
let findByIdStub: sinon.SinonStub;
let t: {commit: sinon.SinonStub, rollback: sinon.SinonStub};
let groupNotifStub: sinon.SinonStub;
const user: any = {
id: 10,
};
beforeEach(function() {
isMemberStub = sinon.stub(MembershipService, 'isMember');
t = {
commit: sinon.stub(),
rollback: sinon.stub(),
};
transactionStub = sinon.stub(sequelize, 'transaction')
.resolves(t as any);
findByIdStub = sinon.stub(CarRepository, 'findById');
groupNotifStub = sinon.stub(GroupNotificationService, 'notifyCarUpdate');
});
it('throws NotMemberOfGroupError if user ' +
'is not member of the specified group', async function() {
isMemberStub.resolves(false);
const groupId = 5;
const carId = 6;
const latitude = 1.2;
const longitude = 89.53;
await expect(CarService.parkCar(
user,
groupId,
carId,
latitude,
longitude,
)).to.eventually.be.rejectedWith(NotMemberOfGroupError);
assert.calledOnceWithExactly(isMemberStub, user, groupId);
assert.notCalled(transactionStub);
assert.notCalled(findByIdStub);
assert.notCalled(groupNotifStub);
});
it('throws NotDriverOfCarError if user is ' +
'not the driver of the car', async function() {
const groupId = 5;
const carId = 6;
const latitude = 1.2;
const longitude = 89.53;
const car = {
carId,
groupId,
name: 'Car',
driverId: user.id + 2,
update: sinon.stub().resolves(),
};
isMemberStub.resolves(true);
findByIdStub.resolves(car as any);
await expect(CarService.parkCar(
user,
groupId,
carId,
latitude,
longitude,
)).to.eventually.be.rejectedWith(NotDriverOfCarError);
assert.calledOnceWithExactly(isMemberStub, user, groupId);
assert.calledOnce(transactionStub);
assert.calledOnceWithExactly(
findByIdStub,
match({carId, groupId}),
match({transaction: t}),
);
assert.calledOnce(t.rollback);
assert.notCalled(car.update);
});
it('if user is driver of car, sets driverId to null '+
'and sets latitude and longitude', async function() {
const groupId = 5;
const carId = 6;
const latitude = 1.2;
const longitude = 89.53;
const car = {
carId,
groupId,
name: 'Car',
driverId: user.id,
update: sinon.stub().resolvesThis(),
get: sinon.stub().returnsThis(),
};
isMemberStub.resolves(true);
findByIdStub.resolves(car as any);
await expect(CarService.parkCar(
user,
groupId,
carId,
latitude,
longitude,
)).to.eventually.be.fulfilled;
assert.calledOnceWithExactly(isMemberStub, user, groupId);
assert.calledOnce(transactionStub);
assert.calledOnceWithExactly(
findByIdStub,
match({carId, groupId}),
match({transaction: t}),
);
assert.calledOnceWithExactly(
car.update,
match({driverId: null, latitude, longitude}),
match({transaction: t}),
);
assert.calledOnceWithExactly(car.get, match({plain: true}));
assert.calledOnceWithExactly(
groupNotifStub,
car.groupId,
car.carId,
GroupCarAction.Park,
car,
);
assert.calledOnce(t.commit);
assert.notCalled(t.rollback);
});
it('throws InternalError instead of any error other than ' +
'NotMemberOfGroupError or NotDriverOfCarError', async function() {
const groupId = 5;
const carId = 6;
const latitude = 1.2;
const longitude = 89.53;
const car = {
carId,
groupId,
name: 'Car',
driverId: user.id,
update: sinon.stub().rejects(new Error('Should not be thrown')),
};
isMemberStub.resolves(true);
findByIdStub.resolves(car as any);
await expect(CarService.parkCar(
user,
groupId,
carId,
latitude,
longitude,
)).to.eventually.be.rejectedWith(InternalError);
assert.calledOnceWithExactly(isMemberStub, user, groupId);
assert.calledOnce(transactionStub);
assert.calledOnceWithExactly(
findByIdStub,
match({carId, groupId}),
match({transaction: t}),
);
assert.calledOnceWithExactly(
car.update,
match({driverId: null, latitude, longitude}),
match({transaction: t}),
);
assert.calledOnce(t.rollback);
assert.notCalled(t.commit);
assert.notCalled(groupNotifStub);
});
});
describe('delete', function() {
let findMembershipStub: sinon.SinonStub;
let repositoryDeleteStub: sinon.SinonStub;
let notifyStub: sinon.SinonStub;
beforeEach(function() {
findMembershipStub = sinon.stub(MembershipService, 'findById');
repositoryDeleteStub = sinon.stub(CarRepository, 'delete');
notifyStub = sinon.stub(GroupNotificationService, 'notifyCarUpdate');
});
it('throws NotMemberOfGroupError if currentUser is ' +
'not a member of the group', async function() {
findMembershipStub.callsFake(() =>
Promise.reject(new NotMemberOfGroupError()));
const groupId = 1;
const carId = 1;
await expect(CarService.delete(user, groupId, carId))
.to.be.rejectedWith(NotMemberOfGroupError);
assert.calledOnceWithExactly(
findMembershipStub,
user,
match({groupId, userId: user.id}),
);
assert.notCalled(repositoryDeleteStub);
assert.notCalled(notifyStub);
});
it('throws NotAdminOfGroupError if currentUser is a member of the ' +
'group but not an admin', async function() {
const groupId = 1;
const carId = 1;
const membership = {
groupId,
isAdmin: false,
createdAt: new Date(),
updatedAt: new Date(),
userId: user.id,
} as Membership;
findMembershipStub.resolves(membership);
await expect(CarService.delete(user, groupId, carId))
.to.be.rejectedWith(NotAdminOfGroupError);
assert.calledOnceWithExactly(
findMembershipStub,
user,
match({groupId, userId: user.id}),
);
assert.notCalled(repositoryDeleteStub);
assert.notCalled(notifyStub);
});
it('throws CarNotFoundError if car doesn\'t exist', async function() {
const groupId = 1;
const carId = 1;
const membership = {
groupId,
isAdmin: true,
createdAt: new Date(),
updatedAt: new Date(),
userId: user.id,
} as Membership;
findMembershipStub.resolves(membership);
repositoryDeleteStub.callsFake(() =>
Promise.reject(new CarNotFoundError(groupId, carId)));
await expect(CarService.delete(user, groupId, carId))
.to.be.rejectedWith(CarNotFoundError);
assert.calledOnceWithExactly(
findMembershipStub,
user,
match({groupId, userId: user.id}),
);
assert.calledOnceWithExactly(
repositoryDeleteStub,
match({groupId, carId}),
);
assert.notCalled(notifyStub);
});
it('if currentUser is admin of group and car exists, delete the car and ' +
'emit a DELETE action', async function() {
const groupId = 1;
const carId = 1;
const membership = {
groupId,
isAdmin: true,
createdAt: new Date(),
updatedAt: new Date(),
userId: user.id,
} as Membership;
findMembershipStub.resolves(membership);
repositoryDeleteStub.resolves();
await expect(CarService.delete(user, groupId, carId))
.to.be.eventually.fulfilled;
assert.calledOnceWithExactly(
findMembershipStub,
user,
match({groupId, userId: user.id}),
);
assert.calledOnceWithExactly(
repositoryDeleteStub,
match({groupId, carId}),
);
assert.calledOnceWithExactly(
notifyStub,
groupId,
carId,
GroupCarAction.Delete,
match({groupId, carId}),
);
});
});
});
|