Skip to content

Commit

Permalink
SOF-7354: update atomName in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed May 8, 2024
1 parent 64533a3 commit 217fbae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/__tests__/mixins/labels.js
Expand Up @@ -19,7 +19,7 @@ describe("Atom labels", () => {
const basisAtomsNumber = wave.structure.basis.elements.length;

atoms.forEach((atom) => {
const atomName = atom.name.split("-")[0];
const atomName = atom.nameWithLabel;
const atomPosition = new THREE.Vector3().setFromMatrixPosition(atom.matrixWorld);

const offsetVector = wave.getLabelOffsetVector(atomPosition, atomName);
Expand Down Expand Up @@ -49,7 +49,7 @@ describe("Atom labels", () => {

const basisAtomsNumber = wave.structure.basis.elements.length;
const doAllAtomsHaveLabels = atoms.every((atom) => {
const atomName = atom.name.split("-")[0];
const atomName = atom.nameWithLabel;
const labelName = `labels-for-${atomName}`;
const labelPointsByAtomName = labels.find(
(labelPoints) => labelPoints.name === labelName,
Expand Down

0 comments on commit 217fbae

Please sign in to comment.