1- local match = require (' luassert.match' )
2- local stub = require (' luassert.stub' )
3- local const = require (' cmake-tools.const' )
1+ local match = require (" luassert.match" )
2+ local stub = require (" luassert.stub" )
3+ local const = require (" cmake-tools.const" )
44local ctest = require (" cmake-tools.test.ctest" )
5- local utils = require (' cmake-tools.utils' )
5+ local utils = require (" cmake-tools.utils" )
66
77describe (" run" , function ()
88 local local_const
99 local Config
1010 local expected
1111 before_each (function ()
12- package.loaded [' cmake-tools.config' ] = nil
13- Config = require (' cmake-tools.config' )
12+ package.loaded [" cmake-tools.config" ] = nil
13+ Config = require (" cmake-tools.config" )
1414 local_const = vim .deepcopy (const )
1515 expected = { " --test-dir" , " build_dir" , " -R" , " test_name" }
1616 stub (utils , " run" )
@@ -22,14 +22,16 @@ describe("run", function()
2222 ctest :run (" test_name" , " build_dir" , " env" , config , {})
2323 table.insert (expected , " -j" )
2424 table.insert (expected , " 6" )
25- assert .stub (utils .run ).was .called_with (match ._ , match ._ , match ._ , expected ,
26- match ._ , match ._ , match ._ , match ._ )
25+ assert
26+ .stub (utils .run ).was
27+ .called_with (match ._ , match ._ , match ._ , expected , match ._ , match ._ , match ._ , match ._ )
2728 end )
2829
2930 it (" ignores extra args if not provided" , function ()
3031 local config = Config :new (const )
3132 ctest :run (" test_name" , " build_dir" , " env" , config , {})
32- assert .stub (utils .run ).was .called_with (match ._ , match ._ , match ._ , expected ,
33- match ._ , match ._ , match ._ , match ._ )
33+ assert
34+ .stub (utils .run ).was
35+ .called_with (match ._ , match ._ , match ._ , expected , match ._ , match ._ , match ._ , match ._ )
3436 end )
3537end )
0 commit comments