Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Jun 1, 2024
1 parent da9fb0f commit e8131b4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import path from 'node:path';
import { expect } from 'chai';
import { createExtendSxProp } from '@pigment-css/react';
import { runTransformation } from '../testUtils';

describe('Pigment CSS - createExtendSxProp', () => {
Expand All @@ -12,10 +11,4 @@ describe('Pigment CSS - createExtendSxProp', () => {
expect(output.js).to.equal(fixture.js);
expect(output.css).to.equal(fixture.css);
});

it('return the new copy of input', () => {
const original = { color: 'red' };
expect(createExtendSxProp()(original)).to.not.equal(original);
expect(createExtendSxProp()(original)).to.deep.equal({ color: 'red' });
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { describe } from 'yargs';
import { expect } from 'chai';
import { createExtendSxProp } from '@pigment-css/react';

describe('createExtendSxProp', () => {
it('return the new copy of input', () => {
const original = { color: 'red' };
expect(createExtendSxProp()(original)).to.not.equal(original);
expect(createExtendSxProp()(original)).to.deep.equal({ color: 'red' });
});
});

0 comments on commit e8131b4

Please sign in to comment.