mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 04:21:35 +00:00
chore: tidy things up and fix typos
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
const Fs = require('fs');
|
||||
const Innertube = require('../../build/node');
|
||||
const Innertube = require('../../build/browser');
|
||||
const { default: NToken } = require('../../lib/deciphers/NToken');
|
||||
const { default: Signature} = require('../../lib/deciphers/Signature');
|
||||
const Constants = require('../constants');
|
||||
|
||||
// NOTE:
|
||||
// these tests disable the restricted headers in XMLHttpRequest
|
||||
// so techinically these tests are not 100% accurate, so they
|
||||
// really represent a browser-like environment and not necessarily a browser
|
||||
// i.e. electron, where you could disable this restriction
|
||||
|
||||
/**
|
||||
* Note:
|
||||
* These tests disable the restricted headers in XMLHttpRequest.
|
||||
* So technically, they are not 100% accurate and represent browser-like
|
||||
* environments such as Electron.
|
||||
*/
|
||||
|
||||
describe('YouTube.js Tests', () => {
|
||||
beforeAll(async () => {
|
||||
this.session = await new Innertube();
|
||||
@@ -83,7 +84,7 @@ describe('YouTube.js Tests', () => {
|
||||
});
|
||||
|
||||
/*
|
||||
// After a lot of testing, I don't think it is possible to download videos in browser
|
||||
// After a lot of testing, I don't think it is possible to download videos in a browser.
|
||||
it('Should download video', async () => {
|
||||
const result = await download(Constants.VIDEOS[1].ID, this.session);
|
||||
expect(result).toBeTruthy();
|
||||
|
||||
Reference in New Issue
Block a user