Skip to content

Commit

Permalink
test: fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Mar 26, 2024
1 parent e0bd6b7 commit de91e69
Show file tree
Hide file tree
Showing 36 changed files with 41 additions and 181 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Expand Up @@ -11,5 +11,6 @@ jobs:
with:
node-version: '20.x'
- run: npm install
- run: npm run lint
- run: npm run build
- run: npm test
10 changes: 5 additions & 5 deletions README.md
@@ -1,4 +1,4 @@
### react-slick
### @ant-design/react-slick

[![Backers on Open Collective](https://opencollective.com/react-slick/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/react-slick/sponsors/badge.svg)](#sponsors)

Expand All @@ -11,13 +11,13 @@
**npm**

```bash
npm install react-slick --save
npm install @ant-design/react-slick --save
```

**yarn**

```bash
yarn add react-slick
yarn add @ant-design/react-slick
```

**Also install slick-carousel for css and font**
Expand Down Expand Up @@ -52,7 +52,7 @@ or add cdn link in your html

```js
import React from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

export default function SimpleSlider() {
var settings = {
Expand Down Expand Up @@ -100,7 +100,7 @@ For all available methods, go [here](https://react-slick.neostack.com/docs/api#m
Want to run demos locally

```bash
git clone https://github.com/akiran/react-slick
git clone https://github.com/ant-design/react-slick
cd react-slick
npm install
npm start
Expand Down
2 changes: 1 addition & 1 deletion examples/AdaptiveHeight.js
@@ -1,5 +1,5 @@
import React from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function AdaptiveHeight() {
const settings = {
Expand Down
2 changes: 1 addition & 1 deletion examples/AppendDots.js
@@ -1,5 +1,5 @@
import React from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function AppendDots() {
const settings = {
Expand Down
2 changes: 1 addition & 1 deletion examples/AsNavFor.js
@@ -1,5 +1,5 @@
import React, { useState, useEffect, useRef } from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function AsNavFor() {
const [nav1, setNav1] = useState(null);
Expand Down
2 changes: 1 addition & 1 deletion examples/AutoPlay.js
@@ -1,5 +1,5 @@
import React from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function AutoPlay() {
const settings = {
Expand Down
2 changes: 1 addition & 1 deletion examples/AutoPlayMethods.js
@@ -1,5 +1,5 @@
import React, { useRef } from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function AutoPlayMethods() {
let sliderRef = useRef(null);
Expand Down
2 changes: 1 addition & 1 deletion examples/CenterMode.js
@@ -1,5 +1,5 @@
import React, { Component } from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function CenterMode() {
const settings = {
Expand Down
2 changes: 1 addition & 1 deletion examples/CustomArrows.js
@@ -1,5 +1,5 @@
import React, { Component } from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function SampleNextArrow(props) {
const { className, style, onClick } = props;
Expand Down
2 changes: 1 addition & 1 deletion examples/CustomPaging.js
@@ -1,5 +1,5 @@
import React, { Component } from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";
import { baseUrl } from "./config";

function CustomPaging() {
Expand Down
2 changes: 1 addition & 1 deletion examples/CustomSlides.js
@@ -1,5 +1,5 @@
import React, { Component } from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function CustomSlide(props) {
const { index, ...otherProps } = props;
Expand Down
2 changes: 1 addition & 1 deletion examples/DynamicSlides.js
@@ -1,5 +1,5 @@
import React, { useState } from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function DynamicSlides() {
const [slides, setSlides] = useState([1, 2, 3, 4, 5, 6]);
Expand Down
2 changes: 1 addition & 1 deletion examples/Fade.js
@@ -1,5 +1,5 @@
import React from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";
import { baseUrl } from "./config";

function Fade() {
Expand Down
2 changes: 1 addition & 1 deletion examples/FocusOnSelect.js
@@ -1,5 +1,5 @@
import React, { Component } from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function FocusOnSelect() {
const settings = {
Expand Down
2 changes: 1 addition & 1 deletion examples/LazyLoad.js
@@ -1,5 +1,5 @@
import React, { Component } from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";
import { baseUrl } from "./config";

function LazyLoad() {
Expand Down
2 changes: 1 addition & 1 deletion examples/MultipleItems.js
@@ -1,5 +1,5 @@
import React from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function MultipleItems() {
const settings = {
Expand Down
2 changes: 1 addition & 1 deletion examples/MultipleRows.js
@@ -1,5 +1,5 @@
import React from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function MultipleRows() {
const settings = {
Expand Down
2 changes: 1 addition & 1 deletion examples/PauseOnHover.js
@@ -1,5 +1,5 @@
import React, { Component } from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function PauseOnHover() {
var settings = {
Expand Down
2 changes: 1 addition & 1 deletion examples/PreviousNextMethods.js
@@ -1,5 +1,5 @@
import React, { useRef } from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function PreviousNextMethods() {
let sliderRef = useRef(null);
Expand Down
2 changes: 1 addition & 1 deletion examples/Resizable.js
@@ -1,5 +1,5 @@
import React, { useState } from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function Resizable() {
const [display, setDisplay] = useState(true);
Expand Down
2 changes: 1 addition & 1 deletion examples/Responsive.js
@@ -1,5 +1,5 @@
import React from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function Responsive() {
var settings = {
Expand Down
2 changes: 1 addition & 1 deletion examples/Rtl.js
@@ -1,5 +1,5 @@
import React from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function Rtl() {
const settings = {
Expand Down
2 changes: 1 addition & 1 deletion examples/SimpleSlider.js
@@ -1,5 +1,5 @@
import React from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function SimpleSlider() {
const settings = {
Expand Down
2 changes: 1 addition & 1 deletion examples/SlickGoTo.js
@@ -1,5 +1,5 @@
import React, { useState, useRef } from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";
import { baseUrl } from "./config";

function SlickGoTo() {
Expand Down
2 changes: 1 addition & 1 deletion examples/SlideChangeHooks.js
@@ -1,5 +1,5 @@
import React, { useState } from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function SlideChangeHooks() {
const [oldSlide, setOldSlide] = useState(0);
Expand Down
2 changes: 1 addition & 1 deletion examples/SwipeToSlide.js
@@ -1,5 +1,5 @@
import React, { Component } from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function SwipeToSlide() {
const settings = {
Expand Down
2 changes: 1 addition & 1 deletion examples/UnevenSetsFinite.js
@@ -1,5 +1,5 @@
import React from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function UnevenSetsFinite() {
var settings = {
Expand Down
2 changes: 1 addition & 1 deletion examples/UnevenSetsInfinite.js
@@ -1,5 +1,5 @@
import React from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function UnevenSetsInfinite() {
var settings = {
Expand Down
2 changes: 1 addition & 1 deletion examples/VariableWidth.js
@@ -1,5 +1,5 @@
import React from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function VariableWidth() {
const settings = {
Expand Down
2 changes: 1 addition & 1 deletion examples/VerticalMode.js
@@ -1,5 +1,5 @@
import React, { Component } from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function VerticalMode() {
const settings = {
Expand Down
2 changes: 1 addition & 1 deletion examples/VerticalSwipeToSlide.js
@@ -1,5 +1,5 @@
import React, { Component } from "react";
import Slider from "react-slick";
import Slider from "@ant-design/react-slick";

function VerticalSwipeToSlide() {
const settings = {
Expand Down
40 changes: 0 additions & 40 deletions examples/__tests__/AutoPlay.test.js

This file was deleted.

104 changes: 0 additions & 104 deletions examples/__tests__/VerticalMode.test.js

This file was deleted.

0 comments on commit de91e69

Please sign in to comment.