Skip to content

Commit

Permalink
adding lint and tests to build action (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanm3341 authored Nov 21, 2023
1 parent 2279644 commit 61da9f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build-release
- run: npm run build-release
- run: npm run lint
- run: npm run test
8 changes: 6 additions & 2 deletions spec/core/messagebroker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ describe('MessageBroker', () => {

describe('Typing', () => {
it('should return a typed push function', () => {
const messageBroker: MessageBroker<IMySampleBroker> = new MessageBroker<IMySampleBroker>(mockRSVPMediator.mock);
const messageBroker: MessageBroker<IMySampleBroker> = new MessageBroker<IMySampleBroker>(
mockRSVPMediator.mock,
);

const stringChannel = messageBroker.create('channelOne');
const numberChannel = messageBroker.create('channelTwo');
Expand All @@ -187,7 +189,9 @@ describe('MessageBroker', () => {
});

it('should return a typed channel', () => {
const messageBroker: MessageBroker<IMySampleBroker> = new MessageBroker<IMySampleBroker>(mockRSVPMediator.mock);
const messageBroker: MessageBroker<IMySampleBroker> = new MessageBroker<IMySampleBroker>(
mockRSVPMediator.mock,
);

const stringChannel = messageBroker.get('channelOne');
const numberChannel = messageBroker.get('channelTwo');
Expand Down

0 comments on commit 61da9f4

Please sign in to comment.