Files: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1 / 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