From b2867f3fdeacd8ba7d567573cb2f98b9de6b22a1 Mon Sep 17 00:00:00 2001 From: Craig Beck Date: Thu, 18 Apr 2024 15:51:11 -0700 Subject: [PATCH] Update test for renamed class --- test/all/App.mocha.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/all/App.mocha.js b/test/all/App.mocha.js index 8ee5e92d..9c877a8f 100644 --- a/test/all/App.mocha.js +++ b/test/all/App.mocha.js @@ -1,19 +1,19 @@ var expect = require('chai').expect; -var App = require('../../src/App').App; +var AppForClient = require('../../src/App').AppForClient; describe('App._parseInitialData', () => { it('parses simple json', () => { - var actual = App._parseInitialData('{"foo": "bar"}'); + var actual = AppForClient._parseInitialData('{"foo": "bar"}'); expect(actual).to.deep.equal({ foo: 'bar' }); }); it('parses escaped json', () => { - var actual = App._parseInitialData('{"foo": "<\\u0021bar><\\/bar>"}'); + var actual = AppForClient._parseInitialData('{"foo": "<\\u0021bar><\\/bar>"}'); expect(actual).to.deep.equal({ foo: '' }); }); it('thorws error with context for unexpected tokens', () => { - expect(() => App._parseInitialData('{"foo": b}')).to.throw( + expect(() => AppForClient._parseInitialData('{"foo": b}')).to.throw( /^Parse failure: Unexpected token/ ); });