git ssb

0+

cel-desktop / ssb-pkg



Tree: efcf9fd06b02fa9bcd28681b4c777224e19702bb

Files: efcf9fd06b02fa9bcd28681b4c777224e19702bb / test / test-79-npm / socket.io-client / socket.io-client@0.9.17.js

541 bytesRaw
1'use strict';
2
3var fs = require('fs');
4var client = require('socket.io-client');
5if (typeof client.protocol === 'number') {
6 var literal = 'socket.io-client/dist/socket.io.js';
7 var path = require.resolve(literal, 'may-exclude');
8 var asset = fs.readFileSync(path, 'utf8');
9 var literalMin = 'socket.io-client/dist/socket.io.min.js';
10 var pathMin = require.resolve(literalMin, 'may-exclude');
11 var assetMin = fs.readFileSync(pathMin, 'utf8');
12 if ((asset.length > 100) &&
13 (assetMin.length > 100)) {
14 console.log('ok');
15 }
16}
17

Built with git-ssb-web