Skip to content

Commit 7f65066

Browse files
committed
chore: fix NUT
1 parent 153a7e0 commit 7f65066

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/commands/agent/generate/spec.nut.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ describe('agent generate spec NUTs', () => {
3838
env: { ...process.env, SF_MOCK_DIR: mockDir },
3939
}).jsonOutput;
4040

41-
const expectedFilePath = join('config', 'agentSpec.yaml');
41+
const expectedFilePath = resolve(session.project.dir, 'config', 'agentSpec.yaml');
4242
expect(output?.result.isSuccess).to.be.true;
4343
expect(output?.result.specPath).to.equal(expectedFilePath);
4444
expect(output?.result.agentType).to.equal(type);
4545
expect(output?.result.role).to.equal(role);
4646
expect(output?.result.companyName).to.equal(companyName);
4747
expect(output?.result.companyDescription).to.equal(companyDescription);
4848
expect(output?.result.topics).to.be.an('array').with.lengthOf(10);
49-
const fileStat = statSync(join(session.project.dir, expectedFilePath));
49+
const fileStat = statSync(expectedFilePath);
5050
expect(fileStat.isFile()).to.be.true;
5151
expect(fileStat.size).to.be.greaterThan(0);
5252
});

0 commit comments

Comments
 (0)