Skip to content

Commit

Permalink
Use @mixin / @mixes to describe concerns used by Game class
Browse files Browse the repository at this point in the history
  • Loading branch information
aedart committed Feb 28, 2024
1 parent 2e992be commit b0012c0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/browser/packages/support/concerns/use-edge-cases.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@ describe('@aedart/support/concerns', () => {

it('concern can use other concern', () => {

/**
* @mixin
* @extends AbstractConcern
*/
class ConcernA extends AbstractConcern {
ping() {
return 'pong';
}
}

/**
* @property {() => string} ping
* @mixes ConcernA
* @extends AbstractConcern
*/
@use(ConcernA)
class ConcernB extends AbstractConcern {
Expand All @@ -22,8 +27,7 @@ describe('@aedart/support/concerns', () => {
}

/**
* @property {() => string} ping
* @property {() => string} pong
* @mixes ConcernB
*/
@use(ConcernB)
class Game {}
Expand Down

0 comments on commit b0012c0

Please sign in to comment.