git ssb

0+

cel-desktop / ssb-pkg



Tree: ca90b5ca0579ebdcc0635288bce4978e3fb200f5

Files: ca90b5ca0579ebdcc0635288bce4978e3fb200f5 / test / test-79-npm / phantom / phantom.js

454 bytesRaw
1'use strict';
2
3var phantom = require('phantom');
4
5var instance, page;
6Promise.resolve().then(function () {
7 return phantom.create();
8}).then(function (i) {
9 instance = i;
10 return instance.createPage();
11}).then(function (p) {
12 page = p;
13 return page.open('https://stackoverflow.com/');
14}).then(function () {
15 return page.property('content');
16}).then(function (content) {
17 if (content.length > 1000) console.log('ok');
18 return instance.exit();
19});
20

Built with git-ssb-web