@@ -3,7 +3,7 @@ import {evaluate} from './evaluator.js'
33import { presentValue } from './presenter.js'
44import { DevServerSession } from '../theme-environment/types.js'
55import { describe , expect , test , vi } from 'vitest'
6- import { consoleWarn } from '@shopify/cli-kit/node/output'
6+ import { outputInfo } from '@shopify/cli-kit/node/output'
77import { createInterface } from 'readline'
88
99vi . mock ( '@shopify/cli-kit/node/output' )
@@ -25,37 +25,37 @@ describe('handleInput', () => {
2525 output : process . stdout ,
2626 } )
2727
28- test ( 'should call consoleWarn if input has {{ delimiter' , async ( ) => {
28+ test ( 'should call outputInfo if input has {{ delimiter' , async ( ) => {
2929 // Given
3030 const inputValue = '{{ collections.first }}'
3131
3232 // When
3333 await handleInput ( inputValue , themeSesssion , themeId , url , rl , [ ] )
3434
3535 // Then
36- expect ( consoleWarn ) . toHaveBeenCalledWith ( DELIMITER_WARNING_MESSAGE )
36+ expect ( outputInfo ) . toHaveBeenCalledWith ( DELIMITER_WARNING_MESSAGE )
3737 } )
3838
39- test ( 'should call consoleWarn if input has {% delimiter' , async ( ) => {
39+ test ( 'should call outputInfo if input has {% delimiter' , async ( ) => {
4040 // Given
4141 const inputValue = '{%'
4242
4343 // When
4444 await handleInput ( inputValue , themeSesssion , themeId , url , rl , [ ] )
4545
4646 // Then
47- expect ( consoleWarn ) . toHaveBeenCalledWith ( DELIMITER_WARNING_MESSAGE )
47+ expect ( outputInfo ) . toHaveBeenCalledWith ( DELIMITER_WARNING_MESSAGE )
4848 } )
4949
50- test ( 'should not call consoleWarn if {{ delimiter is wrapped in quotes' , async ( ) => {
50+ test ( 'should not call outputInfo if {{ delimiter is wrapped in quotes' , async ( ) => {
5151 // Given
5252 const inputValue = '"{{ collections.first }}"'
5353
5454 // When
5555 await handleInput ( inputValue , themeSesssion , themeId , url , rl , [ ] )
5656
5757 // Then
58- expect ( consoleWarn ) . not . toHaveBeenCalled ( )
58+ expect ( outputInfo ) . not . toHaveBeenCalled ( )
5959 } )
6060
6161 test ( 'should call evaluate, presentValue, and prompt readline if input is valid' , async ( ) => {
@@ -66,7 +66,7 @@ describe('handleInput', () => {
6666 await handleInput ( inputValue , themeSesssion , themeId , url , rl , [ ] )
6767
6868 // Then
69- expect ( consoleWarn ) . not . toHaveBeenCalled ( )
69+ expect ( outputInfo ) . not . toHaveBeenCalled ( )
7070 expect ( evaluate ) . toHaveBeenCalled ( )
7171 expect ( presentValue ) . toHaveBeenCalled ( )
7272 } )
0 commit comments