Skip to content

Commit 1888fee

Browse files
committed
Fix test fixture type error
1 parent 2c7be1f commit 1888fee

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/messenger/src/Messenger.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ describe('Messenger', () => {
979979
it('allows calling delegated action', () => {
980980
type ExampleAction = {
981981
type: 'Source:getLength';
982-
handler: (input: string) => string;
982+
handler: (input: string) => number;
983983
};
984984
const sourceMessenger = new Messenger<'Source', ExampleAction, never>({
985985
namespace: 'Source',
@@ -1005,7 +1005,7 @@ describe('Messenger', () => {
10051005
it('allows calling delegated action that is not registered yet at time of delegation', () => {
10061006
type ExampleAction = {
10071007
type: 'Source:getLength';
1008-
handler: (input: string) => string;
1008+
handler: (input: string) => number;
10091009
};
10101010
const sourceMessenger = new Messenger<'Source', ExampleAction, never>({
10111011
namespace: 'Source',
@@ -1032,7 +1032,7 @@ describe('Messenger', () => {
10321032
it('throws an error when delegated action is called before it is registered', () => {
10331033
type ExampleAction = {
10341034
type: 'Source:getLength';
1035-
handler: (input: string) => string;
1035+
handler: (input: string) => number;
10361036
};
10371037
const sourceMessenger = new Messenger<'Source', ExampleAction, never>({
10381038
namespace: 'Source',
@@ -1056,7 +1056,7 @@ describe('Messenger', () => {
10561056
it('unregisters delegated action handlers when action is unregistered', () => {
10571057
type ExampleAction = {
10581058
type: 'Source:getLength';
1059-
handler: (input: string) => string;
1059+
handler: (input: string) => number;
10601060
};
10611061
const sourceMessenger = new Messenger<'Source', ExampleAction, never>({
10621062
namespace: 'Source',
@@ -1265,7 +1265,7 @@ describe('Messenger', () => {
12651265
it('allows revoking a delegated action', () => {
12661266
type ExampleAction = {
12671267
type: 'Source:getLength';
1268-
handler: (input: string) => string;
1268+
handler: (input: string) => number;
12691269
};
12701270
const sourceMessenger = new Messenger<'Source', ExampleAction, never>({
12711271
namespace: 'Source',
@@ -1300,7 +1300,7 @@ describe('Messenger', () => {
13001300
it('allows revoking both a delegated and undelegated action', () => {
13011301
type ExampleFirstAction = {
13021302
type: 'Source:getLength';
1303-
handler: (input: string) => string;
1303+
handler: (input: string) => number;
13041304
};
13051305
type ExampleSecondAction = {
13061306
type: 'Source:getRandomString';
@@ -1348,7 +1348,7 @@ describe('Messenger', () => {
13481348
it('allows revoking a delegated action that is delegated elsewhere', () => {
13491349
type ExampleAction = {
13501350
type: 'Source:getLength';
1351-
handler: (input: string) => string;
1351+
handler: (input: string) => number;
13521352
};
13531353
const sourceMessenger = new Messenger<'Source', ExampleAction, never>({
13541354
namespace: 'Source',
@@ -1408,7 +1408,7 @@ describe('Messenger', () => {
14081408
it('ignores revokation of action that is not delegated to the given messenger, but is delegated elsewhere', () => {
14091409
type ExampleAction = {
14101410
type: 'Source:getLength';
1411-
handler: (input: string) => string;
1411+
handler: (input: string) => number;
14121412
};
14131413
const sourceMessenger = new Messenger<'Source', ExampleAction, never>({
14141414
namespace: 'Source',
@@ -1449,7 +1449,7 @@ describe('Messenger', () => {
14491449
it('ignores revokation of action that is not delegated', () => {
14501450
type ExampleAction = {
14511451
type: 'Source:getLength';
1452-
handler: (input: string) => string;
1452+
handler: (input: string) => number;
14531453
};
14541454
const sourceMessenger = new Messenger<'Source', ExampleAction, never>({
14551455
namespace: 'Source',

0 commit comments

Comments
 (0)