UNPKG

maplibre-gl

Version:

BSD licensed community fork of mapbox-gl, a WebGL interactive maps library

16 lines (14 loc) 479 B
import {describe, test, expect} from 'vitest'; 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); }); });