machinepack-urls
Version:
Machines for working with URL strings.
41 lines (40 loc) • 734 B
JSON
{
"machine": "is-url",
"expectations": [
{
"using": {
"string": "http://i think this is a URL right?"
},
"outcome": "success",
"returns": false
},
{
"using": {
"string": "crap what about this one?q=123"
},
"outcome": "success",
"returns": false
},
{
"using": {
"string": "/ugh/whatever"
},
"outcome": "success",
"returns": false
},
{
"using": {
"string": "http://google.com"
},
"outcome": "success",
"returns": true
},
{
"using": {
"string": "http://google.com/foo/bar?baz=123#hi"
},
"outcome": "success",
"returns": true
}
]
}