Skip to content

Commit

Permalink
fixing tests now due to configure() now being executed
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Sep 23, 2022
1 parent 03182f1 commit 49d0fb4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions box.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
"build:module":"task run taskFile=build/Build.cfc :projectName=`package show slug` :version=`package show version`",
"build:docs":"task run taskFile=build/Build.cfc target=docs :projectName=`package show slug` :version=`package show version`",
"release":"recipe build/release.boxr",
"format":"cfformat run interceptors/,models/,test-harness/**/*.cfc ./.cfformat.json --overwrite",
"format:watch":"cfformat watch interceptors/,models/,test-harness/**/*.cfc ./.cfformat.json",
"format:check":"cfformat check interceptors/,models/,test-harness/**/*.cfc ./.cfformat.json",
"format":"cfformat run interceptors/,models/,test-harness/tests/**/*.cfc ./.cfformat.json --overwrite",
"format:watch":"cfformat watch interceptors/,models/,test-harness/tests/**/*.cfc ./.cfformat.json",
"format:check":"cfformat check interceptors/,models/,test-harness/tests/**/*.cfc ./.cfformat.json",
"cfpm":"echo '\".engine/adobe2021/WEB-INF/cfusion/bin/cfpm.sh\"' | run",
"cfpm:install":"echo '\".engine/adobe2021/WEB-INF/cfusion/bin/cfpm.sh\" install ${1}' | run",
"install:2021":"run-script cfpm:install zip,debugger,orm,mysql,postgresql,sqlserver,feed,chart",
Expand Down
4 changes: 2 additions & 2 deletions [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
"rewrites":{
"enable":"true"
},
"webroot":"test-harness",
"webroot":"test-harness",
"aliases":{
"/moduleroot/mementifier":"../"
}
},
"openBrowser":"false",
"cfconfig":{
"cfconfig":{
"file":".cfconfig.json"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ component extends="coldbox.system.testing.BaseInterceptorTest" interceptor="meme

function beforeAll(){
super.beforeAll();

setup();

variables.moduleSettings = {
Expand All @@ -22,12 +23,15 @@ component extends="coldbox.system.testing.BaseInterceptorTest" interceptor="meme
// If not empty, convert all date/times to the specific timezone
convertToTimezone : ""
};

variables.interceptor.$property(
"settings",
"variables",
variables.moduleSettings
);

variables.interceptor.configure();

var mockData = {
fname : "testuser",
lname : "testuser",
Expand Down

0 comments on commit 49d0fb4

Please sign in to comment.