Skip to content
#

chai

Here are 1,306 public repositories matching this topic...

goldbergyoni
goldbergyoni commented Jan 26, 2020

Given the immense popularity of Docker and the need to harden it different per platform (see ideas below) - we'd like to start writing a Docker best practices section.

You're welcome to contribute ideas and write best practices - writing and brainstorming will people is an amazing way to deepen your Docker understanding.

At first, we want to collect ideas for best practices, solidify a list

chai
IanKemp
IanKemp commented Jan 16, 2020

The documentation for .above states:

The aliases .gt and .greaterThan can be used interchangeably with .above.

However, for .least:

The alias .gte can be used interchangeably with .least.

To my mind, there should be a .greaterThanOrEqual alias for .least in addition to

cefn
cefn commented Apr 22, 2020

In dareid/chakram#6 (comment) I note the inclusion of the extra word 'comprise' for request assertion chains.

I can't find documentation for this keyword through an API search or elsewhere on the web.

It may be because one of the unfortunate costs of building sentence-like build chains - is that each function is a dictionary word not a distinctive comp

guidobouman
guidobouman commented Aug 21, 2019

The and method is not supported by Jest, where Chai does support it.

It should probably cut the assertion in two:

- expect(ticketNumber).to.be.above(0).and.to.be.below(46)
+ expect(ticketNumber).toBeGreaterThan(0)
+ expect(ticketNumber).toBeLessThan(46)

Is this a feasible option for codemods?

If so: I'm willing to work on a PR.

This is a basic API REST skeleton written on JavaScript using async/await. Great for building a starter web API for your front-end (Android, iOS, Vue, react, angular, or anything that can consume an API). Demo of frontend in VueJS here: https://github.com/davellanedam/vue-skeleton-mvp

  • Updated Apr 5, 2020
  • JavaScript
leegee
leegee commented Sep 28, 2017

When following the setup guide, I get this from the sample:

λ node tests\chai.js
C:\Users\User\AppData\Roaming\npm\node_modules\selenium-webdriver\lib\promise.js:2634
        throw error;
        ^

TypeError: checkSizzleExists(...).then(...).then(...).thenCatch is not a function
    at finder (C:\Users\User\AppData\Roaming\npm\node_modules\chai-webdriver\node_modules\webdriver-sizzle\
jedwards1211
jedwards1211 commented May 15, 2019

Since NaN !== NaN, a NaN value causes containSubset to fail, and the error message is confusing because it looks like it's erroneously complaining about missing fields...

Maybe we should use Object.is or equivalent?

      expect({foo: NaN, bar: 'baz'}).to.containSubset({foo: NaN})
      AssertionError: expected { foo: NaN, bar: 'baz' } to contain subset { foo: NaN }

Improve this page

Add a description, image, and links to the chai topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the chai topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.