-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
N21-2103 wip refactor license sync code, fix eslint errors
- Loading branch information
1 parent
78113e1
commit 1a3f65f
Showing
13 changed files
with
317 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
.../modules/media-source/loggable/media-source-for-sync-not-found-loggable.exception.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { MediaSourceForSyncNotFoundLoggableException } from './media-source-for-sync-not-found-loggable.exception'; | ||
|
||
describe(MediaSourceForSyncNotFoundLoggableException.name, () => { | ||
describe('getLogMessage', () => { | ||
const setup = () => { | ||
const mediaSourceName = 'test-media-source'; | ||
const exception = new MediaSourceForSyncNotFoundLoggableException(mediaSourceName); | ||
|
||
return { | ||
exception, | ||
mediaSourceName, | ||
}; | ||
}; | ||
|
||
it('should return the correct log message', () => { | ||
const { exception, mediaSourceName } = setup(); | ||
|
||
const logMessage = exception.getLogMessage(); | ||
|
||
expect(logMessage).toEqual({ | ||
message: 'Unable to sync media school license, because media source cannot be found.', | ||
data: { | ||
mediaSourceName, | ||
}, | ||
}); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.