forked from loafle/openapi-generator-original
31 lines
757 B
Plaintext
31 lines
757 B
Plaintext
--[[
|
|
{{> partial_header}}
|
|
]]
|
|
|
|
local petstore_{{classname}} = require "{{packageName}}.api.{{{classname}}}"
|
|
{{#models}}
|
|
[[-- import all models --]]
|
|
{{#model}}
|
|
local {{packageName}}_{{{classname}}} = require "{{packageName}}.model.{{{classname}}}"
|
|
{{/model}}
|
|
{{/models}}
|
|
|
|
--[[
|
|
Unit tests for {{{packageName}}}.api.{{{classname}}}
|
|
Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
Please update as you see appropriate
|
|
]]
|
|
{{#operations}}
|
|
describe("{{classname}}", function()
|
|
{{#operation}}
|
|
-- unit tests for {{operationId}}
|
|
describe("{{operationId}} test", function()
|
|
it("should work", function()
|
|
-- TODO assertion here: http://olivinelabs.com/busted/#asserts
|
|
end)
|
|
end)
|
|
|
|
{{/operation}}
|
|
end)
|
|
{{/operations}}
|