@@ -22,71 +22,6 @@ describe("Flavor", () => {
2222 ] ) ;
2323 } ) ;
2424
25- describe ( "flavorMixin properties" , ( ) => {
26- let flavor : Flavor ;
27- beforeEach ( ( ) => {
28- flavor = new Flavor ( { name : "test_flavor" } ) ;
29- } ) ;
30-
31- it ( "should have default input as empty array" , ( ) => {
32- expect ( flavor . input ) . to . deep . equal ( [ ] ) ;
33- } ) ;
34-
35- it ( "should return input when set" , ( ) => {
36- const input = [ { name : "param1" } , { name : "param2" } ] ;
37- flavor . setProp ( "input" , input ) ;
38- expect ( flavor . input ) . to . deep . equal ( input ) ;
39- } ) ;
40-
41- it ( "should have executableId as empty string by default" , ( ) => {
42- expect ( flavor . executableId ) . to . equal ( "" ) ;
43- } ) ;
44-
45- it ( "should return executableId when set" , ( ) => {
46- flavor . setProp ( "executableId" , "exec123" ) ;
47- expect ( flavor . executableId ) . to . equal ( "exec123" ) ;
48- } ) ;
49-
50- it ( "should have executableName as empty string by default" , ( ) => {
51- expect ( flavor . executableName ) . to . equal ( "" ) ;
52- } ) ;
53-
54- it ( "should return executableName when set" , ( ) => {
55- flavor . setProp ( "executableName" , "pw" ) ;
56- expect ( flavor . executableName ) . to . equal ( "pw" ) ;
57- } ) ;
58-
59- it ( "should have applicationName as empty string by default" , ( ) => {
60- expect ( flavor . applicationName ) . to . equal ( "" ) ;
61- } ) ;
62-
63- it ( "should return applicationName when set" , ( ) => {
64- flavor . setProp ( "applicationName" , "espresso" ) ;
65- expect ( flavor . applicationName ) . to . equal ( "espresso" ) ;
66- } ) ;
67-
68- it ( "should have supportedApplicationVersions as undefined by default" , ( ) => {
69- expect ( flavor . supportedApplicationVersions ) . to . be . undefined ;
70- } ) ;
71-
72- it ( "should return supportedApplicationVersions when set" , ( ) => {
73- flavor . setProp ( "supportedApplicationVersions" , [ "6.3" , "7.0" ] ) ;
74- expect ( flavor . supportedApplicationVersions ) . to . deep . equal ( [ "6.3" , "7.0" ] ) ;
75- } ) ;
76-
77- // Added with LLM to help with coverage
78- // it("should handle getInputAsRenderedTemplates with different template types", () => {
79- // const mockTemplate = { getRenderedJSON: () => ({ rendered: true }) };
80- // const simpleTemplate = { name: "simple" };
81- // flavor.setProp("input", [mockTemplate, simpleTemplate]);
82-
83- // const result = flavor.getInputAsRenderedTemplates({});
84- // expect(result).to.have.length(2);
85- // expect(result[0]).to.deep.equal({ rendered: true });
86- // expect(result[1]).to.deep.equal({ name: "simple" });
87- // });
88- } ) ;
89-
9025 describe ( "flavorStaticMixin" , ( ) => {
9126 it ( "should have jsonSchema property" , ( ) => {
9227 expect ( Flavor . jsonSchema ) . to . exist ;
0 commit comments