9 lines
196 B
TypeScript
9 lines
196 B
TypeScript
import test from 'ava';
|
|
import { Edge } from '../lib';
|
|
|
|
test ('serialize', (t) => {
|
|
const e = new Edge ('foo', 'bar');
|
|
const serialized = e.toString ();
|
|
t.is (serialized, 'foo -> bar');
|
|
});
|