npm.io
0.0.5 • Published 6 years ago

umbra-assert

Licence
MIT
Version
0.0.5
Deps
1
Size
44 kB
Vulns
0
Weekly
0

Umbra Assert

Umbra assertion is an assertion framework built to be expressive and simple. It's focus is on making writing tests easier and less error prone. Let's take a look at some simple examples.

Features

  • Automatic deep equals checks
  • Expect and Assert style expectations

Examples

String comparison

const actual = "hello " + "world";
Assert.equals(actual, "hello world");
expect(actual).toBe("hello world");

Object comparison

const actual = {
    
};
Assert.equals(actual, "hello world");
expect(actual).toBe("hello world");