Skip to content

Commit

Permalink
fix: document immutable (#2)
Browse files Browse the repository at this point in the history
Signed-off-by: dankeboy36 <[email protected]>
  • Loading branch information
dankeboy36 authored Dec 1, 2023
1 parent decc0e5 commit 575d137
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ assert.ok(new FQBN('a:b:c:o1=v1,o2=v2').equals(new FQBN('a:b:c:o2=v2,o1=v1')));

## Development

1. Install the dependencies

```sh
npm i
```

1. Build

```sh
Expand Down
3 changes: 3 additions & 0 deletions src/__tests__/fqbn.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,9 @@ describe('fqbn', () => {
assert.strictEqual(fqbn2.boardId, 'mkr1000');
assert.deepStrictEqual(fqbn2.options, { o1: 'v1' });

// immutable
assert.strictEqual(fqbn.options, undefined);

// withConfigOptions (add + update)
const fqbn3 = fqbn2.withConfigOptions(
{
Expand Down

0 comments on commit 575d137

Please sign in to comment.