Handbook Modules Changelog Support Sponsors @SerenityJS on Twitter serenity-js on YouTube Source code
👋 CSS? XPath? Or data-test-id? Help make Serenity/JS selectors better by answering 3 short questions!
  • Modules
  • @serenity-js/assertions
  • @serenity-js/console-reporter
  • @serenity-js/core
  • @serenity-js/cucumber
  • @serenity-js/jasmine
  • @serenity-js/local-server
  • @serenity-js/mocha
  • @serenity-js/protractor
  • @serenity-js/rest
  • @serenity-js/serenity-bdd
  • @serenity-js/webdriverio
  • assertions
  • Readme
  • Source code
  • Specs
  • API Reference
  • CEnsure
  • expectationsFand
  • Fcontain
  • FcontainAtLeastOneItemThat
  • FcontainItemsWhereEachItem
  • FendsWith
  • Fequals
  • Fincludes
  • FisAfter
  • FisBefore
  • FisFalse
  • FisGreaterThan
  • FisLessThan
  • FisTrue
  • Fmatches
  • Fnot
  • For
  • Fproperty
  • FstartsWith

src/expectations/isFalse.ts

import { Expectation } from '@serenity-js/core';

import { equals } from './equals';

export function isFalse(): Expectation<boolean> {
    return Expectation.to<boolean>(`equal false`).soThatActual(equals(false));
}
Get started
  • Serenity/JS Handbook
  • API docs
  • Template projects
  • Examples
Support
  • Free Support
  • Training
  • Commercial support
  • Serenity/JS Sponsors
  • Community Chat
Developers
  • Contribute
  • Changelog
  • License
Sponsor Star
Made with love in London, UK © 2016 - 2022 Jan Molak, smartcode ltd.