# Doesn't understand logic of tests

**URL:** <https://community.postman.com/t/doesnt-understand-logic-of-tests/1506>\
**Category:** Help Hub\
**Tags:** chai\
**Created:** [April 30, 2018, 9:08am UTC](https://community.postman.com/t/doesnt-understand-logic-of-tests/1506 "2018-04-30T09:08:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![borys.fursov](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@borys.fursov](https://community.postman.com/u/borys.fursov)\
**Post date:** [April 30, 2018, 9:08am UTC](https://community.postman.com/t/doesnt-understand-logic-of-tests/1506/1 "2018-04-30T09:08:01Z")

</div>

Hello I was confused because of it’s chai’s assertions:  
My code: ![aab45767-dce0-4327-8439-83b292c52f4f](https://us1.discourse-cdn.com/getpostman/original/3X/9/6/96266b326360c0cfce046884b09e58cca773ef0e.jpeg)  
In Chai’s documentation I see:  
The following are provided as chainable getters to improve the readability of your assertions.

Chains

to  
So i was thinking i can skip .to chain without loosing anythig, why it doesn’t work without this chain?

---

<div class="post-metadata">

**Author:** ![kunagpal](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kunagpal/32/9_2.png) [@kunagpal](https://community.postman.com/u/kunagpal)\
**Post date:** [April 30, 2018, 2:49pm UTC](https://community.postman.com/t/doesnt-understand-logic-of-tests/1506/2 "2018-04-30T14:49:39Z")

</div>

@borys.fursov The Chai assertion interface exposed within the testing sandbox requires all assertion chains to begin with `.to`.
