Files
shaka-player/test/assumptions/uint8_array_unit.js
T
Joey Parrish 64896d70b0 Use shorter license header
This reflects changes in Google's policy on JavaScript license
headers, which should be smaller to avoid increasing the size of the
binary unnecessarily.

This also updates the company name from "Google, Inc" to "Google LLC".

Change-Id: I3f8b9ed3700b6351f43173d50c94d35c333e82b4
2019-11-22 18:18:36 +00:00

22 lines
540 B
JavaScript

/** @license
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
describe('Uint8Array', () => {
it('checks equality', () => {
const subject = new Uint8Array([0, 1, 2, 3]);
const same = new Uint8Array([0, 1, 2, 3]);
const different = new Uint8Array([4, 5, 6, 7]);
expect(subject).toBe(subject);
expect(subject).toEqual(subject);
expect(subject).not.toBe(same);
expect(subject).toEqual(same);
expect(subject).not.toBe(different);
expect(subject).not.toEqual(different);
});
});