mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-16 16:16:40 +03:00
test: Fix override TextDecoder on tests (#9549)
This commit is contained in:
committed by
GitHub
parent
1c18dea798
commit
5b473c8d54
@@ -12,15 +12,9 @@ describe('StringUtils', () => {
|
||||
});
|
||||
|
||||
describe('without TextDecoder', () => {
|
||||
let originalTextDecoder;
|
||||
|
||||
beforeAll(() => {
|
||||
originalTextDecoder = window.TextDecoder;
|
||||
window['TextDecoder'] = null;
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
window.TextDecoder = originalTextDecoder;
|
||||
beforeEach(() => {
|
||||
spyOn(deviceDetected, 'shouldAvoidUseTextDecoderEncoder')
|
||||
.and.returnValue(true);
|
||||
});
|
||||
|
||||
defineStringUtilTests();
|
||||
|
||||
Reference in New Issue
Block a user