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

Sign up to get free protection for your applications and to get access to all the features.
@@ -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>