Skip to content

Commit

Permalink
fix: issuance fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Jan 31, 2022
1 parent 8955e1f commit d48de5d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/utils/xls.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const sendXls = (name, bytes, response) => {
export const encodeValue = (value, hex = false) => {
// Todo: address this elsewhere (hide these columns). This is a quick fix for complex relationships in xlsx
if (typeof value === 'object') {
value = '';
value = value.id;
}

if (hex) {
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/unit.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('Unit Resource Integration Tests', function () {
homeOrgUid = await testFixtures.getHomeOrgId();
});

it.only('deletes a unit end-to-end (with simulator)', async function () {
it('deletes a unit end-to-end (with simulator)', async function () {
/*
Basic Idea for this test is that we are going to create a unit and verify that
the new unit propagates through the data layer and into our db. Then we are going
Expand Down
8 changes: 7 additions & 1 deletion tests/test-fixtures/common-fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,16 @@ export const objectContainsSubSet = (obj, objSubset) => {
);
});
});
} else if (Object.keys(objSubset[key]).length) {
Object.keys(objSubset[key]).forEach((childkey) => {
expect(obj[key][childkey], childkey).to.deep.equal(
objSubset[key][childkey],
);
});
} else {
expect(
objSubset[key],
`${key}: ${objSubset[key]} does not equal {${key}: ${obj[key]}}`,
`{${key}: ${objSubset[key]}} does not equal {${key}: ${obj[key]}}`,
).to.deep.equal(obj[key]);
}
});
Expand Down

0 comments on commit d48de5d

Please sign in to comment.