Skip to content

Commit

Permalink
Rename Sqrl to Eta (code migration)
Browse files Browse the repository at this point in the history
  • Loading branch information
nebrelbug committed Mar 26, 2020
1 parent 6213cbd commit a052af6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/async.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* global it, expect, describe */

import * as Sqrl from '../src/index'
import * as Eta from '../src/index'

function resolveAfter2Seconds (val: string): Promise<string> {
return new Promise(resolve => {
Expand All @@ -19,12 +19,12 @@ describe('Async Render checks', () => {
describe('Async works', () => {
it('Simple template compiles asynchronously', async () => {
expect(
await Sqrl.render('Hi <%= it.name %>', { name: 'Ada Lovelace' }, { async: true })
await Eta.render('Hi <%= it.name %>', { name: 'Ada Lovelace' }, { async: true })
).toEqual('Hi Ada Lovelace')
})
it('Async function works', async () => {
expect(
await Sqrl.render(
await Eta.render(
'<%= await it.asyncTest() %>',
{ name: 'Ada Lovelace', asyncTest: asyncTest },
{ async: true }
Expand Down

0 comments on commit a052af6

Please sign in to comment.