@@ -146,6 +146,32 @@ test("getInterface: specVersion 2.2", async (t) => {
146146 t . is ( typeof interfacedTaskUtil . registerCleanupTask , "function" , "function registerCleanupTask is provided" ) ;
147147} ) ;
148148
149+ test ( "getInterface: specVersion 2.3" , async ( t ) => {
150+ const taskUtil = new TaskUtil ( {
151+ projectBuildContext : {
152+ STANDARD_TAGS : [ "some tag" ]
153+ }
154+ } ) ;
155+
156+ const interfacedTaskUtil = taskUtil . getInterface ( "2.3" ) ;
157+
158+ t . deepEqual ( Object . keys ( interfacedTaskUtil ) , [
159+ "STANDARD_TAGS" ,
160+ "setTag" ,
161+ "clearTag" ,
162+ "getTag" ,
163+ "isRootProject" ,
164+ "registerCleanupTask"
165+ ] , "Correct methods are provided" ) ;
166+
167+ t . deepEqual ( interfacedTaskUtil . STANDARD_TAGS , [ "some tag" ] , "attribute STANDARD_TAGS is provided" ) ;
168+ t . is ( typeof interfacedTaskUtil . setTag , "function" , "function setTag is provided" ) ;
169+ t . is ( typeof interfacedTaskUtil . clearTag , "function" , "function clearTag is provided" ) ;
170+ t . is ( typeof interfacedTaskUtil . getTag , "function" , "function getTag is provided" ) ;
171+ t . is ( typeof interfacedTaskUtil . isRootProject , "function" , "function isRootProject is provided" ) ;
172+ t . is ( typeof interfacedTaskUtil . registerCleanupTask , "function" , "function registerCleanupTask is provided" ) ;
173+ } ) ;
174+
149175test ( "getInterface: specVersion undefined" , async ( t ) => {
150176 const taskUtil = new TaskUtil ( {
151177 projectBuildContext : {
0 commit comments