@@ -5,6 +5,7 @@ import test from "ava";
55import * as sinon from "sinon" ;
66
77import * as actionsUtil from "../actions-util" ;
8+ import * as diffInformed from "../diff-informed" ;
89import * as gitUtils from "../git-utils" ;
910import {
1011 createTestConfig ,
@@ -60,7 +61,7 @@ test.serial(
6061 const diffRangeFilePath = path . join ( tempDir , "pr-diff-range.json" ) ;
6162 sinon . stub ( actionsUtil , "getTemporaryDirectory" ) . returns ( tempDir ) ;
6263 sinon
63- . stub ( actionsUtil , "getDiffRangesJsonFilePath" )
64+ . stub ( diffInformed , "getDiffRangesJsonFilePath" )
6465 . returns ( diffRangeFilePath ) ;
6566 sinon . stub ( gitUtils , "getGitRoot" ) . resolves ( sourceRoot ) ;
6667 const changesFilePath = await writeOverlayChangesFile (
@@ -126,7 +127,7 @@ test.serial(
126127 const diffRangeFilePath = path . join ( tempDir , "pr-diff-range.json" ) ;
127128 sinon . stub ( actionsUtil , "getTemporaryDirectory" ) . returns ( tempDir ) ;
128129 sinon
129- . stub ( actionsUtil , "getDiffRangesJsonFilePath" )
130+ . stub ( diffInformed , "getDiffRangesJsonFilePath" )
130131 . returns ( diffRangeFilePath ) ;
131132 sinon . stub ( gitUtils , "getGitRoot" ) . resolves ( sourceRoot ) ;
132133
@@ -196,7 +197,7 @@ test.serial(
196197 const diffRangeFilePath = path . join ( tempDir , "pr-diff-range.json" ) ;
197198 sinon . stub ( actionsUtil , "getTemporaryDirectory" ) . returns ( tempDir ) ;
198199 sinon
199- . stub ( actionsUtil , "getDiffRangesJsonFilePath" )
200+ . stub ( diffInformed , "getDiffRangesJsonFilePath" )
200201 . returns ( diffRangeFilePath ) ;
201202 sinon . stub ( gitUtils , "getGitRoot" ) . resolves ( sourceRoot ) ;
202203
@@ -259,7 +260,7 @@ test.serial(
259260 const diffRangeFilePath = path . join ( tempDir , "pr-diff-range.json" ) ;
260261 sinon . stub ( actionsUtil , "getTemporaryDirectory" ) . returns ( tempDir ) ;
261262 sinon
262- . stub ( actionsUtil , "getDiffRangesJsonFilePath" )
263+ . stub ( diffInformed , "getDiffRangesJsonFilePath" )
263264 . returns ( diffRangeFilePath ) ;
264265 // getGitRoot returns the repo root (parent of sourceRoot)
265266 sinon . stub ( gitUtils , "getGitRoot" ) . resolves ( repoRoot ) ;
0 commit comments