fix(core): update
This commit is contained in:
		| @@ -11,7 +11,7 @@ tap.test('should start the smartssr instance', async () => { | ||||
|   await testSSRInstance.start(); | ||||
| }); | ||||
|  | ||||
| tap.test('should render central.eu', async (tools) => { | ||||
| tap.test('should render central.eu', async tools => { | ||||
|   await testSSRInstance.renderPage('https://central.eu'); | ||||
| }); | ||||
|  | ||||
|   | ||||
| @@ -32,7 +32,10 @@ export class SmartSSR { | ||||
|       const pageContent = await page.content(); | ||||
|       const renderedPageString = pageContent; | ||||
|       resultDeferred.resolve(renderedPageString); | ||||
|       plugins.smartfile.memory.toFsSync(renderedPageString, plugins.path.join(paths.noGitDir, 'test.html')); | ||||
|       plugins.smartfile.memory.toFsSync( | ||||
|         renderedPageString, | ||||
|         plugins.path.join(paths.noGitDir, 'test.html') | ||||
|       ); | ||||
|     }); | ||||
|  | ||||
|     await page.goto(urlArg); | ||||
|   | ||||
| @@ -2,4 +2,3 @@ import * as plugins from './smartssr.plugins'; | ||||
|  | ||||
| export const packageDir = plugins.path.join(__dirname, '../'); | ||||
| export const noGitDir = plugins.path.join(packageDir, './.nogit'); | ||||
|  | ||||
|   | ||||
| @@ -2,10 +2,7 @@ | ||||
| import * as path from 'path'; | ||||
| import * as fs from 'fs'; | ||||
|  | ||||
| export { | ||||
|   path, | ||||
|   fs | ||||
| }; | ||||
| export { path, fs }; | ||||
|  | ||||
| // @pushrocks scope | ||||
| import * as smartdelay from '@pushrocks/smartdelay'; | ||||
| @@ -13,9 +10,4 @@ import * as smartfile from '@pushrocks/smartfile'; | ||||
| import * as smartpuppeteer from '@pushrocks/smartpuppeteer'; | ||||
| import * as smartpromise from '@pushrocks/smartpromise'; | ||||
|  | ||||
| export { | ||||
|   smartdelay, | ||||
|   smartfile, | ||||
|   smartpuppeteer, | ||||
|   smartpromise | ||||
| }; | ||||
| export { smartdelay, smartfile, smartpuppeteer, smartpromise }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user