@@ -44,7 +44,7 @@ describe('CloudFormation Template Registry', async function () {
44
44
45
45
assert . strictEqual ( testRegistry . registeredItems . length , 1 )
46
46
47
- const data = testRegistry . getRegisteredItem ( filename . fsPath )
47
+ const data = testRegistry . getItem ( filename . fsPath )
48
48
49
49
assertValidTestTemplate ( data , filename . fsPath )
50
50
} )
@@ -71,21 +71,21 @@ describe('CloudFormation Template Registry', async function () {
71
71
await strToYamlFile ( goodYaml1 , filename . fsPath )
72
72
await testRegistry . addItemToRegistry ( filename )
73
73
74
- const data = testRegistry . getRegisteredItem ( filename )
74
+ const data = testRegistry . getItem ( filename )
75
75
76
76
assertValidTestTemplate ( data , filename . fsPath )
77
77
} )
78
78
79
79
it ( 'returns undefined if the registry has no registered templates' , function ( ) {
80
- assert . strictEqual ( testRegistry . getRegisteredItem ( '/template.yaml' ) , undefined )
80
+ assert . strictEqual ( testRegistry . getItem ( '/template.yaml' ) , undefined )
81
81
} )
82
82
83
83
it ( 'returns undefined if the registry does not contain the template in question' , async function ( ) {
84
84
const filename = vscode . Uri . file ( path . join ( tempFolder , 'template.yaml' ) )
85
85
await strToYamlFile ( goodYaml1 , filename . fsPath )
86
86
await testRegistry . addItemToRegistry ( vscode . Uri . file ( filename . fsPath ) )
87
87
88
- assert . strictEqual ( testRegistry . getRegisteredItem ( '/not-the-template.yaml' ) , undefined )
88
+ assert . strictEqual ( testRegistry . getItem ( '/not-the-template.yaml' ) , undefined )
89
89
} )
90
90
} )
91
91
0 commit comments