Mejora de label
This commit is contained in:
@@ -24,10 +24,15 @@ runtime:
|
||||
expect(res.getStatus()).to.equal(200)
|
||||
})
|
||||
|
||||
test("Body must include a data field", () => {
|
||||
const body = res.getBody()
|
||||
expect(body.data).toBeDefined()
|
||||
})
|
||||
|
||||
test("Body should include the label", () => {
|
||||
const body = res.getBody()
|
||||
expect(body.label).to.be.defined()
|
||||
)}
|
||||
expect(body.data.label).toBeDefined()
|
||||
})
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
|
||||
@@ -19,4 +19,8 @@ export function labelTemplate(code: string) {
|
||||
|
||||
^XZ
|
||||
`
|
||||
.split("\n")
|
||||
.filter(e => e[0] == "^")
|
||||
.join("\n")
|
||||
// Pequeño filtro para ahorrar espacio pero mantener las anotaciones de ZPL
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user