Skip to content

Commit

Permalink
documentation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MathijsVerbeeck committed Jul 25, 2023
1 parent 33ebddf commit 6e5d5e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/docs/cmd/spo/listitem/listitem-attachment-set.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Global from '/docs/cmd/_global.mdx';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# spo listitem attachment add
# spo listitem attachment set

Updates an attachment from a list item

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ describe(commands.LISTITEM_ATTACHMENT_SET, () => {
assert.notStrictEqual(actual, true);
});

it('adds attachment to listitem in list retrieved by id while specifying fileName', async () => {
it('updates attachment to listitem in list retrieved by id while specifying fileName', async () => {
sinon.stub(fs, 'existsSync').returns(true);
sinon.stub(fs, 'readFileSync').returns('content read');
const putStub = sinon.stub(request, 'put').callsFake(async (args) => {
Expand All @@ -124,7 +124,7 @@ describe(commands.LISTITEM_ATTACHMENT_SET, () => {
assert(putStub.called);
});

it('adds attachment to listitem in list retrieved by url while not specifying fileName', async () => {
it('updates attachment to listitem in list retrieved by url while not specifying fileName', async () => {
sinon.stub(fs, 'existsSync').returns(true);
sinon.stub(fs, 'readFileSync').returns('content read');
const putStub = sinon.stub(request, 'put').callsFake(async (args) => {
Expand All @@ -139,7 +139,7 @@ describe(commands.LISTITEM_ATTACHMENT_SET, () => {
assert(putStub.called);
});

it('adds attachment to listitem in list retrieved by url while specifying fileName without extension', async () => {
it('updates attachment to listitem in list retrieved by url while specifying fileName without extension', async () => {
sinon.stub(fs, 'existsSync').returns(true);
sinon.stub(fs, 'readFileSync').returns('content read');
const fileNameWithoutExtension = fileName.split('.')[0];
Expand Down

0 comments on commit 6e5d5e6

Please sign in to comment.