Skip to content

Commit

Permalink
use toBe in test
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Mar 10, 2022
1 parent 0d2968e commit c67aee5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -222,7 +222,7 @@ export default function (context, { env, runtime }) {
const html = await res1.text()
const body = await getNodeBySelector(html, '#__next')
// Resolve data instead of fallback
expect(body.text()).toContain('next_streaming_data')
expect(body.text()).toBe('next_streaming_data')

if (runtime === 'nodejs') {
expect(res1.headers.get('etag')).toBeDefined()
Expand Down

0 comments on commit c67aee5

Please sign in to comment.