# What is the difference between all the .eql assertions?

**URL:** <https://community.postman.com/t/what-is-the-difference-between-all-the-eql-assertions/35450>\
**Category:** Help Hub\
**Created:** [May 18, 2022, 6:53pm UTC](https://community.postman.com/t/what-is-the-difference-between-all-the-eql-assertions/35450 "2022-05-18T18:53:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andekis](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@andekis](https://community.postman.com/u/andekis)\
**Post date:** [May 18, 2022, 6:53pm UTC](https://community.postman.com/t/what-is-the-difference-between-all-the-eql-assertions/35450/1 "2022-05-18T18:53:20Z")

</div>

I have found different ways to write an assertion that checks equality. But I’ve found no explanation what is the difference between them? And are there more of them? For example:

```
pm.expect(a).to.eql("");
pm.expect(a).to.be.eql("");
pm.expect(a).is.eql("");

```

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [May 18, 2022, 8:30pm UTC](https://community.postman.com/t/what-is-the-difference-between-all-the-eql-assertions/35450/2 "2022-05-18T20:30:48Z")

</div>

Hi @andekis

I’m not a Chai JS expert so I can only give my opinion… But,

As far as I am aware, while all of those may work, the accurate way to script using the Chai JS framework would be to use;

`.to.eql`

As a side note; I know there are differences between using `.eql` _(deeply)_ and `.equal` _(strictly)_.

More info on the Chai JS framework can be found here, along with detailed descriptions of the assertion options.

> **[Assert - Chai](https://www.chaijs.com/api/assert/#method_equal)**
>
> Chai is a BDD / TDD assertion library for \[node\](http://nodejs.org) and the browser that can be delightfully paired with any javascript testing framework.
