Commit Graph

114 Commits

Author SHA1 Message Date
mike12345567 5dfa460374 Disabling VM by default in string-templates, backend services *MUST* set their JS runner specifically rather than assuming the VM library by default. 2024-02-20 16:23:35 +00:00
Adria Navarro 6c78c7a45f Fix tests 2024-02-09 13:28:37 +01:00
Adria Navarro 0db98f7fb1 Move sandbox escape test to server 2024-02-09 10:35:58 +01:00
Adria Navarro 7aee57eb6a Fix javacript runs 2024-02-09 10:33:09 +01:00
Adria Navarro ec7adfb1b1 Remove index.cjs entry point 2024-02-09 10:27:22 +01:00
Adria Navarro 573096e869
Merge branch 'master' into revert-12934-revert-12930-revert-12929-revert-12769-isolated-vm 2024-02-08 18:15:36 +01:00
Sam Rose 8e9db069e5
Remove all uses of test.com in the code, replace them with example.com and create a lint rule to prevent this in future. 2024-02-08 16:32:14 +00:00
Adria Navarro 8dfcc3aeb1
Revert "Revert "Migrate from `vm` to `isolated-vm`"" 2024-02-02 12:02:09 +01:00
Sam Rose 332a201ae7
Revert "Migrate from `vm` to `isolated-vm`" 2024-02-02 09:51:46 +00:00
Adria Navarro 45ea6a6fd6
Revert "Revert "Migrate from `vm` to `isolated-vm`"" 2024-02-01 16:47:41 +01:00
Adria Navarro 16749ec3dd
Revert "Migrate from `vm` to `isolated-vm`" 2024-02-01 16:30:34 +01:00
Adria Navarro 843d95c3bb Lint 2024-02-01 12:30:59 +01:00
Adria Navarro 4461c49f48 Allow skipping tests 2024-02-01 10:58:20 +01:00
Adria Navarro 82db76627f Better typing 2024-02-01 10:56:59 +01:00
Adria Navarro e6ae364918 Register server helpers 2024-01-31 17:49:55 +01:00
Adria Navarro b96ca1cf54 Run hbs on server tests 2024-01-31 17:49:55 +01:00
Adria Navarro de4d7d95c3 Move code to test helpers 2024-01-31 17:49:55 +01:00
Adria Navarro e5d5dea5e6 Renames 2024-01-31 10:00:41 +01:00
Adria Navarro 43e536e7a6 Test only js helpers 2024-01-30 16:52:25 +01:00
Adria Navarro f94e1e105a Renames 2024-01-30 15:49:48 +01:00
Adria Navarro 061d1589af Run js only for non-block 2024-01-30 10:21:33 +01:00
Adria Navarro 5b5228d8b0 Type params 2024-01-30 09:48:15 +01:00
Adria Navarro 5a1d73ff2f Fix avg helper 2024-01-30 09:48:15 +01:00
Adria Navarro ceb7fc04f4 Add js tests (not all working) 2024-01-30 09:48:15 +01:00
Adria Navarro b36c8ad476 Move cleanups out of the actual test 2024-01-30 09:48:15 +01:00
Adria Navarro 52fca8714d More verbose test code 2024-01-23 19:40:31 +01:00
Adria Navarro 108508db7e Fix tests 2024-01-23 19:32:03 +01:00
Adria Navarro f193c276f6 Fix test 2024-01-23 19:32:03 +01:00
Adria Navarro ea0e36b7a4 Don't explicitly exclude raw 2024-01-23 19:32:03 +01:00
Adria Navarro 99e5bc1a57 Refactor 2024-01-23 19:32:03 +01:00
Adria Navarro 4829cdc4ce Fix uuid tests 2024-01-23 19:32:03 +01:00
Adria Navarro 603943d7cf Refactor tests 2024-01-23 19:32:03 +01:00
Adria Navarro b66fac87cc Fix some array examples 2024-01-23 19:32:03 +01:00
Adria Navarro 6f87a6f0bc Fix some array examples 2024-01-23 19:32:03 +01:00
Adria Navarro c59750cc9e Fix some array tests 2024-01-23 19:32:03 +01:00
Adria Navarro 7705397da3 Array instead of string 2024-01-23 19:32:03 +01:00
Adria Navarro dc0bef20d8 Fix sum 2024-01-23 19:32:03 +01:00
Adria Navarro ac9f8bd498 Fix random test 2024-01-23 19:32:03 +01:00
Adria Navarro f783602d9f Fix date test examples 2024-01-23 19:32:03 +01:00
Adria Navarro daa87915e8 Test examples 2024-01-23 19:32:03 +01:00
Adria Navarro afd5b593f8 Fix test 2024-01-23 19:31:22 +01:00
Adria Navarro 272e85f696 Add test 2024-01-18 15:35:58 +01:00
Michael Drury dceb623732
Merge branch 'master' into feature/uuid-helper 2023-12-18 11:06:48 +00:00
Sam Rose b963e7081e
Fix test. 2023-12-15 16:50:36 +00:00
mike12345567 6173497afa Adding a UUID helper to simplify things, question comes up fairly regularly. 2023-12-13 17:56:16 +00:00
Adria Navarro 742eb4ff46 Lint fix 2023-11-20 15:36:55 +01:00
Conor Webb 3aad1e8ca3 Helpers functions bug fixes (#11003)
* Helpers functions bug fixes

* Corrected multiply example

* Removing test for times.

---------

Co-authored-by: mike12345567 <me@michaeldrury.co.uk>
2023-07-03 12:07:45 +01:00
mike12345567 d667276fa1 Adding a onlyFound option to our handlebars system so that we can enrich only the parts we have and leave other components for further enrichment. 2023-01-27 15:15:07 +00:00
mike12345567 d3029d33ae Minor fix for #8843 - the binding input drawer was using the format helper. rather than helpers. when generating JS helpers. 2022-12-06 18:21:54 +00:00
mike12345567 3b64a8f94b Adding ellipsis test case. 2022-09-07 11:55:03 +01:00