Skip to content

Commit

Permalink
fix: update tests and snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush2303 committed Jan 17, 2025
1 parent ab19b81 commit 23eac18
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 95 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,7 @@ describe('isMonthArray', () => {
expect(isMonthArray([date, date.getDate() + 1, date.getDate() + 2])).toBe(false);
});

test('Should return true when input array contains months data', () => {
expect(isMonthArray([10, 11, 1])).toBe(true);
});

test('Should return false when input array contains numeric data(apart from months 1 to 12)', () => {
test('Should return false when input array contains numeric data', () => {
expect(isMonthArray([20, 30, 40])).toBe(false);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4187,7 +4187,7 @@ exports[`DeclarativeChart Should render gaugechart in DeclarativeChart 1`] = `
class=

{
fill: #9373c0;
fill: #107c10;
font-size: 12px;
font-weight: 600;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ Object {
],
"styles": Object {
"sublabel": Object {
"fill": "#f7adda",
"fill": "#54b054",
},
},
"sublabel": "▲ 20",
Expand Down Expand Up @@ -2844,70 +2844,70 @@ Object {
"chartTitle": "PHP Framework Popularity at Work - SitePoint, 2015",
"data": Array [
Object {
"color": "#cf87da",
"legend": "Laravel",
"x": 1659,
"y": "Laravel",
"color": "#4f6bed",
"legend": "Aura",
"x": 10,
"y": "Aura",
},
Object {
"color": "#dac157",
"legend": "Symfony2",
"x": 1067,
"y": "Symfony2",
"color": "#d0b232",
"legend": "Drupal",
"x": 11,
"y": "Drupal",
},
Object {
"color": "#637cef",
"legend": "Nette",
"x": 671,
"y": "Nette",
"color": "#c36bd1",
"legend": "TYPO3 Flow",
"x": 17,
"y": "TYPO3 Flow",
},
Object {
"color": "#e3008c",
"legend": "CodeIgniter",
"x": 597,
"y": "CodeIgniter",
"color": "#73aa24",
"legend": "FuelPHP",
"x": 25,
"y": "FuelPHP",
},
Object {
"color": "#2aa0a4",
"legend": "Yii 2",
"x": 504,
"y": "Yii 2",
"color": "#d77440",
"legend": "Kohana",
"x": 35,
"y": "Kohana",
},
Object {
"color": "#9373c0",
"legend": "PHPixie",
"x": 418,
"y": "PHPixie",
"color": "#4fa1e1",
"legend": "Typo 3",
"x": 35,
"y": "Typo 3",
},
Object {
"color": "#13a10e",
"legend": "Yii 1",
"x": 407,
"y": "Yii 1",
"color": "#27ac22",
"legend": "Simple MVC Framework",
"x": 42,
"y": "Simple MVC Framework",
},
Object {
"color": "#3a96dd",
"legend": "Zend Framework 2",
"x": 390,
"y": "Zend Framework 2",
"color": "#a083c9",
"legend": "Silex",
"x": 65,
"y": "Silex",
},
Object {
"color": "#ca5010",
"legend": "Company Internal Framework",
"x": 378,
"y": "Company Internal Framework",
"color": "#4cb4b7",
"legend": "Slim",
"x": 79,
"y": "Slim",
},
Object {
"color": "#57811b",
"legend": "Zend Framework 1",
"x": 274,
"y": "Zend Framework 1",
"color": "#ee5fb7",
"legend": "Phalcon",
"x": 169,
"y": "Phalcon",
},
Object {
"color": "#b146c2",
"legend": "CakePHP",
"x": 255,
"y": "CakePHP",
"color": "#93a4f4",
"legend": "We use a CMS for everything",
"x": 203,
"y": "We use a CMS for everything",
},
Object {
"color": "#ae8c00",
Expand All @@ -2916,70 +2916,70 @@ Object {
"y": "No Framework",
},
Object {
"color": "#93a4f4",
"legend": "We use a CMS for everything",
"x": 203,
"y": "We use a CMS for everything",
"color": "#b146c2",
"legend": "CakePHP",
"x": 255,
"y": "CakePHP",
},
Object {
"color": "#ee5fb7",
"legend": "Phalcon",
"x": 169,
"y": "Phalcon",
"color": "#57811b",
"legend": "Zend Framework 1",
"x": 274,
"y": "Zend Framework 1",
},
Object {
"color": "#4cb4b7",
"legend": "Slim",
"x": 79,
"y": "Slim",
"color": "#ca5010",
"legend": "Company Internal Framework",
"x": 378,
"y": "Company Internal Framework",
},
Object {
"color": "#a083c9",
"legend": "Silex",
"x": 65,
"y": "Silex",
"color": "#3a96dd",
"legend": "Zend Framework 2",
"x": 390,
"y": "Zend Framework 2",
},
Object {
"color": "#27ac22",
"legend": "Simple MVC Framework",
"x": 42,
"y": "Simple MVC Framework",
"color": "#13a10e",
"legend": "Yii 1",
"x": 407,
"y": "Yii 1",
},
Object {
"color": "#4fa1e1",
"legend": "Typo 3",
"x": 35,
"y": "Typo 3",
"color": "#9373c0",
"legend": "PHPixie",
"x": 418,
"y": "PHPixie",
},
Object {
"color": "#d77440",
"legend": "Kohana",
"x": 35,
"y": "Kohana",
"color": "#2aa0a4",
"legend": "Yii 2",
"x": 504,
"y": "Yii 2",
},
Object {
"color": "#73aa24",
"legend": "FuelPHP",
"x": 25,
"y": "FuelPHP",
"color": "#e3008c",
"legend": "CodeIgniter",
"x": 597,
"y": "CodeIgniter",
},
Object {
"color": "#c36bd1",
"legend": "TYPO3 Flow",
"x": 17,
"y": "TYPO3 Flow",
"color": "#637cef",
"legend": "Nette",
"x": 671,
"y": "Nette",
},
Object {
"color": "#d0b232",
"legend": "Drupal",
"x": 11,
"y": "Drupal",
"color": "#dac157",
"legend": "Symfony2",
"x": 1067,
"y": "Symfony2",
},
Object {
"color": "#4f6bed",
"legend": "Aura",
"x": 10,
"y": "Aura",
"color": "#cf87da",
"legend": "Laravel",
"x": 1659,
"y": "Laravel",
},
],
"secondaryYAxistitle": "",
Expand Down

0 comments on commit 23eac18

Please sign in to comment.