UNPKG

transitive-js

Version:

A tool for generating dynamic stylized transit maps that are easy to understand.

12 lines (9 loc) 276 B
/* globals describe, expect, it */ import { addVectors } from '../../lib/util' describe('util', () => { it('addVectors should work', () => { const vec1 = { x: 1, y: 2 } const vec2 = { x: 3, y: 4 } expect(addVectors(vec1, vec2)).toEqual({ x: 4, y: 6 }) }) })