dareid / dareid/chakram

Any interest in plain text assertion?

Open
#82 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
898
Forks
90
PR merge metrics
No merged PRs in 30d

Description

@dareid Do you see any value in adding a `plainText()` assertion? It would behave similar to the existing `json()` assertion. For example:

```
expect(response).to.have.plainText("chakram is awesome");
expect(response).to.comprise.of.plainText("chakram is awesome");
```

Figured I would post here before submitting a PR. Let me know what you think.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the existing json() assertion and the assertion chains shown in the issue. Compare their behavior with the proposed plainText() examples; done means both plainText() forms assert the response text as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.