summaryrefslogtreecommitdiff
path: root/spec/parser_spec.lua
blob: 78ee8b8c8509591710a145a59eb4997deba4b509 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
local parse = require "headers.parser"


describe("Scheme", function()
	it("version one is supported", function()
		assert.has_no.errors(function()
			parse [[scheme "headers/1"]]
		end)
	end)

	it("is not required", function()
		assert.has_no.errors(function()
			parse ""
		end)
	end)
end)