summaryrefslogtreecommitdiff
path: root/bin/wiki/ImportarDesdeURL/node_modules/parse-uri/test/index.js
blob: ff61a1ff19d6b010a2c15bfa79f9d7ca5f999e2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* global describe, it */

'use strict'

var URI = require('..')
var should = require('should')

var URLS = [
  'https://github.com/garycourt/uri-js',
  'magnet:?xt=urn:sha1:PDAQRAOQQRYS76MRZJ33LK4MMVZBDSCL',
  'https://🐀.ws/🐀🐀'
]

describe('parse uri', function () {
  it('works fine', function () {
    URLS.forEach(function (url) {
      URI(url).protocol.should.be.ok()
    })
  })
})