notifications-node-client
Advanced tools
Comparing version 4.2.0 to 4.3.0
@@ -0,1 +1,6 @@ | ||
## [4.3.0] - 2018-09-04 | ||
* Added `name` to the response for `getTemplateById()` and `getTemplateByIdAndVersion()` | ||
* These functions now return the name of the template as set in Notify | ||
## [4.2.0] - 2018-07-24 | ||
@@ -2,0 +7,0 @@ |
@@ -614,2 +614,3 @@ # GOV.UK Notify Node.js client | ||
"id": "template_id", | ||
"name": "template name", | ||
"type": "sms|email|letter", | ||
@@ -680,2 +681,3 @@ "created_at": "created at", | ||
"id": "template_id", | ||
"name": "template name", | ||
"type": "sms|email|letter", | ||
@@ -751,2 +753,3 @@ "created_at": "created at", | ||
"id": "template_id", | ||
"name": "template name", | ||
"type": "sms|email|letter", | ||
@@ -753,0 +756,0 @@ "created_at": "created at", |
{ | ||
"name": "notifications-node-client", | ||
"version": "4.2.0", | ||
"version": "4.3.0", | ||
"description": "GOV.UK Notify Node.js client ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -614,2 +614,3 @@ # GOV.UK Notify Node.js client | ||
"id": "template_id", | ||
"name": "template name", | ||
"type": "sms|email|letter", | ||
@@ -680,2 +681,3 @@ "created_at": "created at", | ||
"id": "template_id", | ||
"name": "template name", | ||
"type": "sms|email|letter", | ||
@@ -751,2 +753,3 @@ "created_at": "created at", | ||
"id": "template_id", | ||
"name": "template name", | ||
"type": "sms|email|letter", | ||
@@ -753,0 +756,0 @@ "created_at": "created at", |
@@ -8,2 +8,3 @@ { | ||
"id": {"$ref": "definitions.json#/uuid"}, | ||
"name": {"type": "string"}, | ||
"type": {"enum": ["sms", "email", "letter"] }, | ||
@@ -25,3 +26,3 @@ "created_at": { | ||
}, | ||
"required": ["id", "type", "created_at", "updated_at", "version", "created_by", "body"] | ||
"required": ["id", "name", "type", "created_at", "updated_at", "version", "created_by", "body"] | ||
} |
@@ -187,2 +187,3 @@ const NotifyClient = require('../../client/notification.js').NotifyClient; | ||
expect(response.body).to.be.jsonSchema(getTemplateJson); | ||
response.body.name.should.equal('Client Functional test sms template'); | ||
should.not.exist(response.body.subject); | ||
@@ -197,2 +198,3 @@ }); | ||
response.body.body.should.equal('Hello ((name))\r\n\r\nFunctional test help make our world a better place'); | ||
response.body.name.should.equal('Client Functional test email template'); | ||
response.body.subject.should.equal('Functional Tests are good'); | ||
@@ -207,2 +209,3 @@ }); | ||
response.body.body.should.equal('Hello ((address_line_1))'); | ||
response.body.name.should.equal('Client functional letter template'); | ||
response.body.subject.should.equal('Main heading'); | ||
@@ -216,2 +219,3 @@ }); | ||
expect(response.body).to.be.jsonSchema(getTemplateJson); | ||
response.body.name.should.equal('Example text message template'); | ||
should.not.exist(response.body.subject); | ||
@@ -226,2 +230,3 @@ response.body.version.should.equal(1); | ||
expect(response.body).to.be.jsonSchema(getTemplateJson); | ||
response.body.name.should.equal('Client Functional test email template'); | ||
response.body.version.should.equal(1); | ||
@@ -235,2 +240,3 @@ }); | ||
expect(response.body).to.be.jsonSchema(getTemplateJson); | ||
response.body.name.should.equal('Untitled'); | ||
response.body.version.should.equal(1); | ||
@@ -237,0 +243,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
114915
1737
955
38