maplibre-gl
Version:
BSD licensed community fork of mapbox-gl, a WebGL interactive maps library
15 lines (13 loc) • 432 B
text/typescript
import Anchor from './anchor';
describe('Anchor', () => {
test('#constructor', () => {
expect(new Anchor(0, 0, 0) instanceof Anchor).toBeTruthy();
expect(new Anchor(0, 0, 0, 0) instanceof Anchor).toBeTruthy();
});
test('#clone', () => {
const a = new Anchor(1, 2, 3);
const b = new Anchor(1, 2, 3);
expect(a.clone()).toEqual(b);
expect(a.clone()).toEqual(a);
});
});