@teambit/toolbox.string.ellipsis 0.0.189 → 0.0.191

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const ellipsis_1 = require("./ellipsis");
4
+ const chai_1 = require("chai");
4
5
  it('should not ellipsis', () => {
5
- expect((0, ellipsis_1.ellipsis)('abc', 3)).toEqual('abc');
6
+ (0, chai_1.expect)((0, ellipsis_1.ellipsis)('abc', 3)).to.equal('abc');
6
7
  });
7
8
  it('should ellipsis', () => {
8
- expect((0, ellipsis_1.ellipsis)('abcde', 3)).toEqual('abc...');
9
+ (0, chai_1.expect)((0, ellipsis_1.ellipsis)('abcde', 3)).to.equal('abc...');
9
10
  });
10
11
  //# sourceMappingURL=ellipsis.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ellipsis.spec.js","sourceRoot":"","sources":["../ellipsis.spec.ts"],"names":[],"mappings":";;AAAA,yCAAsC;AAEtC,EAAE,CAAC,qBAAqB,EAAE,GAAG,EAAE;IAC7B,MAAM,CAAC,IAAA,mBAAQ,EAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,iBAAiB,EAAE,GAAG,EAAE;IACzB,MAAM,CAAC,IAAA,mBAAQ,EAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AACjD,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"ellipsis.spec.js","sourceRoot":"","sources":["../ellipsis.spec.ts"],"names":[],"mappings":";;AAAA,yCAAsC;AACtC,+BAA8B;AAE9B,EAAE,CAAC,qBAAqB,EAAE,GAAG,EAAE;IAC7B,IAAA,aAAM,EAAC,IAAA,mBAAQ,EAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,iBAAiB,EAAE,GAAG,EAAE;IACzB,IAAA,aAAM,EAAC,IAAA,mBAAQ,EAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AAClD,CAAC,CAAC,CAAC"}
package/ellipsis.spec.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import { ellipsis } from './ellipsis';
2
+ import { expect } from 'chai';
2
3
 
3
4
  it('should not ellipsis', () => {
4
- expect(ellipsis('abc', 3)).toEqual('abc');
5
+ expect(ellipsis('abc', 3)).to.equal('abc');
5
6
  });
6
7
 
7
8
  it('should ellipsis', () => {
8
- expect(ellipsis('abcde', 3)).toEqual('abc...');
9
+ expect(ellipsis('abcde', 3)).to.equal('abc...');
9
10
  });
package/package.json CHANGED
@@ -1,18 +1,19 @@
1
1
  {
2
2
  "name": "@teambit/toolbox.string.ellipsis",
3
- "version": "0.0.189",
3
+ "version": "0.0.191",
4
4
  "homepage": "https://bit.cloud/teambit/toolbox/string/ellipsis",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.toolbox",
8
8
  "name": "string/ellipsis",
9
- "version": "0.0.189"
9
+ "version": "0.0.191"
10
10
  },
11
11
  "dependencies": {},
12
12
  "devDependencies": {
13
+ "@types/chai": "4.2.15",
14
+ "chai": "4.3.0",
13
15
  "@types/mocha": "9.1.0",
14
- "@types/jest": "26.0.20",
15
- "@types/node": "22.10.5"
16
+ "@teambit/node.envs.node-typescript-mocha": "0.0.1"
16
17
  },
17
18
  "peerDependencies": {},
18
19
  "license": "Apache-2.0",
package/types/asset.d.ts CHANGED
@@ -5,12 +5,12 @@ declare module '*.png' {
5
5
  declare module '*.svg' {
6
6
  import type { FunctionComponent, SVGProps } from 'react';
7
7
 
8
- export const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement> & { title?: string }>;
8
+ export const ReactComponent: FunctionComponent<
9
+ SVGProps<SVGSVGElement> & { title?: string }
10
+ >;
9
11
  const src: string;
10
12
  export default src;
11
13
  }
12
-
13
- // @TODO Gilad
14
14
  declare module '*.jpg' {
15
15
  const value: any;
16
16
  export = value;
@@ -27,3 +27,15 @@ declare module '*.bmp' {
27
27
  const value: any;
28
28
  export = value;
29
29
  }
30
+ declare module '*.otf' {
31
+ const value: any;
32
+ export = value;
33
+ }
34
+ declare module '*.woff' {
35
+ const value: any;
36
+ export = value;
37
+ }
38
+ declare module '*.woff2' {
39
+ const value: any;
40
+ export = value;
41
+ }
@@ -1,7 +0,0 @@
1
- ;
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.toolbox_string_ellipsis@0.0.189/dist/ellipsis.docs.md';
3
-
4
- export const compositions = [];
5
- export const overview = [overview_0];
6
-
7
- export const compositions_metadata = {"compositions":[]};