@@ -123,6 +123,14 @@ describe('Lockfile', function () {
123123 assert . strictEqual ( foo . wantedMajor , '0' ) ;
124124 assert . strictEqual ( foo . latest , '2.11.1' ) ;
125125 assert . strictEqual ( foo . latestMajor , '2' ) ;
126+
127+ const doesnotexist = response . features [ 'ghcr.io/codspace/doesnotexist:0.1.2' ] ;
128+ assert . ok ( doesnotexist ) ;
129+ assert . strictEqual ( doesnotexist . current , undefined ) ;
130+ assert . strictEqual ( doesnotexist . wanted , undefined ) ;
131+ assert . strictEqual ( doesnotexist . wantedMajor , undefined ) ;
132+ assert . strictEqual ( doesnotexist . latest , undefined ) ;
133+ assert . strictEqual ( doesnotexist . latestMajor , undefined ) ;
126134 } ) ;
127135
128136 it ( 'outdated command with text output' , async ( ) => {
@@ -131,7 +139,7 @@ describe('Lockfile', function () {
131139 const res = await shellExec ( `${ cli } outdated --workspace-folder ${ workspaceFolder } --output-format text` ) ;
132140 const response = res . stdout ;
133141 // Count number of lines of output
134- assert . strictEqual ( response . split ( '\n' ) . length , 7 ) ; // 5 valid Features + header + empty line
142+ assert . strictEqual ( response . split ( '\n' ) . length , 8 ) ; // 5 valid Features + header + empty line
135143
136144 // Check that the header is present
137145 assert . ok ( response . includes ( 'Current' ) , 'Current column is missing' ) ;
@@ -145,6 +153,7 @@ describe('Lockfile', function () {
145153 assert . ok ( response . includes ( 'ghcr.io/devcontainers/features/github-cli' ) , 'github-cli Feature is missing' ) ;
146154 assert . ok ( response . includes ( 'ghcr.io/devcontainers/features/azure-cli' ) , 'azure-cli Feature is missing' ) ;
147155 assert . ok ( response . includes ( 'ghcr.io/codspace/versioning/foo' ) , 'foo Feature is missing' ) ;
156+ assert . ok ( response . includes ( 'ghcr.io/codspace/doesnotexist' ) , 'doesnotexist Feature is missing' ) ;
148157
149158 // Check that filtered Features are not present
150159 assert . ok ( ! response . includes ( 'mylocalfeature' ) ) ;
0 commit comments