Skip to content

Commit

Permalink
test++
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanong committed Sep 25, 2023
1 parent 6fe3dab commit cc69cab
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions __tests__/__snapshots__/edges.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`values at the edges 1`] = `"1test2"`;
11 changes: 11 additions & 0 deletions __tests__/edges.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

const assert = require('assert')

const { streamToString } = require('../utils')
const render = require('../lib')

test('values at the edges', async () => {
const result = await streamToString(render`${'1'}test${'2'}`)
assert.strictEqual(result, '1test2')
expect(result).toMatchSnapshot()
})

0 comments on commit cc69cab

Please sign in to comment.