0.3.0-canary.20230329T070514 • Published 3 years ago

earl v0.3.0-canary.20230329T070514

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Earl

Features

  • 💪 Powerful validators and matchers
  • 🤖 Type-safe - written in TypeScript and goes well with static analysis
  • 🎭 Builtin support for mocks
  • ☕ Works great with Mocha
  • 📸 Snapshot testing
  • 🔌 Extensible with plugins

Installation

npm install --save-dev earl

Note: It's earljs not earl!

Example

import { expect } from 'earl'

// ...

expect(response).toEqual({
  body: { trimmed: true, timestamp: expect.a(String) },
})

Docs

License

Published under the MIT License. Copyright © 2023 L2BEAT.