Skip to content

Commit

Permalink
add test for pseudocolumn generateUniqueId function
Browse files Browse the repository at this point in the history
  • Loading branch information
jrchudy committed Sep 30, 2024
1 parent 945014d commit 6e9f2bd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/specs/column/tests/02.reference_column.js
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,16 @@ exports.execute = function (options) {
// mainEntityColumns
});

it ('should return the unqiue ID for a row of the table the pseudocolumn represents based on provided data', function () {
var data = {
"int_value": 4321,
"id": 1,
"RID": "1YJ"
}

expect(mainEntityColumns[5].generateUniqueId(data)).toBe(data.RID);
});

describe('should return a filtered reference based on provided data.', function () {
it('Reference for mainEntityColumns[3], should have proper domain filter.', function() {
mainEntityData = {}
Expand Down

0 comments on commit 6e9f2bd

Please sign in to comment.