yratanov/ember-page-object-asserts

View on GitHub
addon/assertions/does-not-include.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Component } from 'ember-cli-page-object/-private';

export function doesNotInclude(po: Component, field: string, value?: any, message?: string) : AssertionResult {
  let actual = (po as any)[field];
  return {
    result: !actual.includes(value),
    actual,
    expected: value,
    message: message || `${field} does not include "${value}"`
  };
}