1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Merge pull request #14575 from Snuffleupagus/rm-isStream

Remove the `isStream` helper function
This commit is contained in:
Tim van der Meij 2022-02-19 14:59:19 +01:00 committed by GitHub
commit df0aa1a9c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 51 additions and 80 deletions

View file

@ -21,7 +21,6 @@ import {
isName,
isRef,
isRefsEqual,
isStream,
Name,
Ref,
RefSet,
@ -560,16 +559,4 @@ describe("primitives", function () {
expect(isRefsEqual(ref1, ref2)).toEqual(false);
});
});
describe("isStream", function () {
it("handles non-streams", function () {
const nonStream = {};
expect(isStream(nonStream)).toEqual(false);
});
it("handles streams", function () {
const stream = new StringStream("foo");
expect(isStream(stream)).toEqual(true);
});
});
});