@@ -46,7 +46,7 @@ describe('zone_record', function () {
4646 }
4747 } )
4848
49- describe ( 'name ' , function ( ) {
49+ describe ( 'owner ' , function ( ) {
5050 it ( `accepts valid` , ( ) => {
5151 const testCase = JSON . parse ( JSON . stringify ( testZR ) )
5252 const { error, value } = schema . validate ( testCase )
@@ -56,26 +56,26 @@ describe('zone_record', function () {
5656
5757 it ( `rejects missing` , ( ) => {
5858 const testCase = JSON . parse ( JSON . stringify ( testZR ) )
59- delete testCase . name
59+ delete testCase . owner
6060 const { error } = schema . validate ( testCase )
61- assert . strictEqual ( error . message , '"name " is required' )
61+ assert . strictEqual ( error . message , '"owner " is required' )
6262 } )
6363
6464 it ( `rejects empty` , ( ) => {
6565 const testCase = JSON . parse ( JSON . stringify ( testZR ) )
66- testCase . name = ''
66+ testCase . owner = ''
6767 const { error } = schema . validate ( testCase )
68- assert . strictEqual ( error . message , '"name " is not allowed to be empty' )
68+ assert . strictEqual ( error . message , '"owner " is not allowed to be empty' )
6969 } )
7070
71- for ( const name of [ 'a.m.' , 'something.test.' ] ) {
72- it ( `rejects invalid: ${ name } ` , ( ) => {
71+ for ( const owner of [ 'a.m.' , 'something.test.' ] ) {
72+ it ( `rejects invalid: ${ owner } ` , ( ) => {
7373 const testCase = JSON . parse ( JSON . stringify ( testZR ) )
74- testCase . name = name
74+ testCase . owner = owner
7575 const { error } = schema . validate ( testCase )
7676 assert . deepEqual (
7777 error . message ,
78- '"name " must contain a valid domain name' ,
78+ '"owner " must contain a valid domain name' ,
7979 )
8080 } )
8181 }
0 commit comments