Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
describe("public class methods", () => {
var video = new Video();
it("must create react element", () => {
(video: React.ElementRef);
});
describe("seek", () => {
it("seek must call with number ", () => {
video.seek(1);
// $ExpectError
video.seek();
});
it("must call seek with number and tolerance IOS argument", () => {
var toleranceIOS = 1;
describe('public class methods', () => {
var video = new Video();
it('should create react element', () => {
(video: React.ElementRef);
});
describe('seek', () => {
it('seek should call with number ', () => {
video.seek(1);
// $ExpectError
video.seek();
});
it('should call seek with number and tolerance IOS argument', () => {
var toleranceIOS = 1;
it('raises an error when overwrite some value', () => {
// $ExpectError - read-only
FilterType.SEPIA = '123';
// $ExpectError - exact type
FilterType.SEPIAXXX = '123';
});
});
it('raises an error when overwrite some value', () => {
// $ExpectError - read-only
TextTrackType.TTML = '123';
// $ExpectError - exact type
TextTrackType.TTMLXXX = '123';
});
});
Object.keys(foundSubtitles).forEach((langCode) => {
const sub = foundSubtitles[langCode]
subs.push({
title : sub.lang,
language: sub.langcode,
type : TextTrackType.VTT, // "text/vtt"
uri : sub.vtt,
})
})
it('should has values', () => {
(FilterType.NONE: '');
(FilterType.INVERT: 'CIColorInvert');
(FilterType.MONOCHROME: 'CIColorMonochrome');
(FilterType.POSTERIZE: 'CIColorPosterize');
(FilterType.FALSE: 'CIFalseColor');
(FilterType.MAXIMUMCOMPONENT: 'CIMaximumComponent');
(FilterType.MINIMUMCOMPONENT: 'CIMinimumComponent');
(FilterType.CHROME: 'CIPhotoEffectChrome');
(FilterType.FADE: 'CIPhotoEffectFade');
(FilterType.INSTANT: 'CIPhotoEffectInstant');
(FilterType.MONO: 'CIPhotoEffectMono');
(FilterType.NOIR: 'CIPhotoEffectNoir');
(FilterType.PROCESS: 'CIPhotoEffectProcess');
(FilterType.TONAL: 'CIPhotoEffectTonal');
(FilterType.TRANSFER: 'CIPhotoEffectTransfer');
(FilterType.SEPIA: 'CISepiaTone');
});
it("must has values", () => {
(TextTrackType.SRT: "application/x-subrip");
(TextTrackType.TTML: "application/ttml+xml");
(TextTrackType.VTT: "text/vtt");
});
});
it('should has values', () => {
(TextTrackType.SRT: 'application/x-subrip');
(TextTrackType.TTML: 'application/ttml+xml');
(TextTrackType.VTT: 'text/vtt');
});
it('should has values', () => {
(FilterType.NONE: '');
(FilterType.INVERT: 'CIColorInvert');
(FilterType.MONOCHROME: 'CIColorMonochrome');
(FilterType.POSTERIZE: 'CIColorPosterize');
(FilterType.FALSE: 'CIFalseColor');
(FilterType.MAXIMUMCOMPONENT: 'CIMaximumComponent');
(FilterType.MINIMUMCOMPONENT: 'CIMinimumComponent');
(FilterType.CHROME: 'CIPhotoEffectChrome');
(FilterType.FADE: 'CIPhotoEffectFade');
(FilterType.INSTANT: 'CIPhotoEffectInstant');
(FilterType.MONO: 'CIPhotoEffectMono');
(FilterType.NOIR: 'CIPhotoEffectNoir');
(FilterType.PROCESS: 'CIPhotoEffectProcess');
(FilterType.TONAL: 'CIPhotoEffectTonal');
(FilterType.TRANSFER: 'CIPhotoEffectTransfer');
(FilterType.SEPIA: 'CISepiaTone');
});
it('should has values', () => {
(FilterType.NONE: '');
(FilterType.INVERT: 'CIColorInvert');
(FilterType.MONOCHROME: 'CIColorMonochrome');
(FilterType.POSTERIZE: 'CIColorPosterize');
(FilterType.FALSE: 'CIFalseColor');
(FilterType.MAXIMUMCOMPONENT: 'CIMaximumComponent');
(FilterType.MINIMUMCOMPONENT: 'CIMinimumComponent');
(FilterType.CHROME: 'CIPhotoEffectChrome');
(FilterType.FADE: 'CIPhotoEffectFade');
(FilterType.INSTANT: 'CIPhotoEffectInstant');
(FilterType.MONO: 'CIPhotoEffectMono');
(FilterType.NOIR: 'CIPhotoEffectNoir');
(FilterType.PROCESS: 'CIPhotoEffectProcess');
(FilterType.TONAL: 'CIPhotoEffectTonal');
(FilterType.TRANSFER: 'CIPhotoEffectTransfer');
(FilterType.SEPIA: 'CISepiaTone');
});