Files: c5c7a8ffadbd51aa28a5f3f096fe43f69405da44 / test / test-79-npm / socket.io-client / socket.io-client@0.9.17.js
541 bytesRaw
1 | ; |
2 | |
3 | var fs = require('fs'); |
4 | var client = require('socket.io-client'); |
5 | if (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