@aml-org/amf-custom-validator-web 1.3.0-SNAPSHOT.90 → 1.3.0-SNAPSHOT.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ /// <reference types="cypress" />
2
+
3
+ describe('messageExpression', () => {
4
+ it('should render report with custom message', () => {
5
+ cy.visit('cypress/html/messageExpression.html')
6
+ cy.get('#report').should('include.text', "Movie 'Disaster Movie' has a rating of 1.9 but it does not have at least 10 reviews (actual reviews: 5) to support that rating")
7
+ })
8
+ })
@@ -0,0 +1,12 @@
1
+ <html lang="eng">
2
+ <head>
3
+ <title>Tests</title>
4
+ </head>
5
+ <body>
6
+ <pre id="report"></pre>
7
+ <script src="../../test/out/messageExpression.js"></script>
8
+ <script>
9
+ test.run()
10
+ </script>
11
+ </body>
12
+ </html>