Skip to content

Commit

Permalink
Fix: Correct date field test assertions (#1673)
Browse files Browse the repository at this point in the history
Assert on the expected value rather than the input value.
  • Loading branch information
NeilFraser authored Apr 24, 2023
1 parent df1b943 commit 9974e85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/dev-tools/src/field_test_helpers.mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {runTestCases, TestCase} from './common_test_helpers.mocha';
*/
export class FieldValueTestCase {
/**
* Class for a a field value test case.
* Class for a field value test case.
*/
constructor() {
/**
Expand Down
2 changes: 1 addition & 1 deletion plugins/field-date/test/field_date_test.mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ suite('FieldDate', function() {
* @param {FieldValueTestCase} testCase The test case.
*/
const validTestCaseAssertField = function(field, testCase) {
assertFieldValue(field, testCase.value);
assertFieldValue(field, testCase.expectedValue);
};

runConstructorSuiteTests(
Expand Down

0 comments on commit 9974e85

Please sign in to comment.