How to use the power-assert.deepStrictEqual function in power-assert

To help you get started, we’ve selected a few power-assert examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github formio / formio.js / test / wizards / simple.js View on Github external
.then(() => {
          // Write data
          const wizardData = {
            a: 'a',
            b: 'b'
          };
          Harness.testSubmission(form, {
            data: wizardData
          });
          assert.deepStrictEqual(form._seenPages, [0]);
          assert.equal(form.page, 0);
        })
        .then(() => {
github whizark / commitlint-config-cz / test / config.spec.js View on Github external
it('should return an empty commitlint config object when non-existent config path is given', function () {
            assert.deepStrictEqual(Config.get(''), {rules: {}});
        });
github whizark / commitlint-config-cz / test / types.spec.js View on Github external
it('should return the default types if `types` does not exist in given config', function () {
            assert.deepStrictEqual(Types.get({}), Types.defaults);
        });
github kt3k / kocha / packages / karma-kocha / __tests__ / adaptor.js View on Github external
it('process the assertion error', () => {
      const processedError = processAssertionError({
        name: 'foo',
        message: 'An error',
        expected: { foo: 1 },
        actual: { bar: 2 },
        showDiff: true
      }, kocha.stringify)

      assert.deepStrictEqual(processedError, {
        name: 'foo',
        message: 'An error',
        expected: 'Object{foo:1}',
        actual: 'Object{bar:2}',
        showDiff: true
      })
    })
  })
github kuy / redux-tooltip / tests / unit / test_utils.js View on Github external
it('returns a stripped area', () => {
        const area = { top: '50px', left: '48.8px' };
        assert.deepStrictEqual(utils.strip(area), { top: 50, left: 48.8 });
      });
    });
github googleapis / nodejs-firestore / test / query.js View on Github external
function requestEquals(actual, protoComponents) {
  protoComponents = Array.prototype.slice.call(arguments, 1);
  assert.deepStrictEqual(actual, buildQuery.apply(null, protoComponents));
}
github recruit-tech / agreed-core / test / lib / server.notify.js View on Github external
mustCall(() => {
              const actual = JSON.parse(data);
              const expected = { result: "hoge" };
              assert.deepStrictEqual(actual, expected);
            })
          );
github ktsn / vue-form-builder / test / unit / Helpers.spec.ts View on Github external
function assertSelected(wrapper: Wrapper, selector: string, value: string | string[]): void {
  if (typeof value === 'string') {
    value = [value]
  }
  const select = q(wrapper, selector)
  const selected = Array.from(select.options).filter(option => {
    return option.selected
  }).map(option => {
    return option.value
  })

  assert.deepStrictEqual(selected.sort(), value.sort())
}
github recruit-tech / agreed-core / test / lib / server.arrayreqs.js View on Github external
mustCall(() => {
            const result = JSON.parse(data);
            assert.deepStrictEqual(result, ["2017", "2017", "2018"]);
          })
        );
github googleapis / nodejs-firestore / test / index.js View on Github external
return Promise.all(promises).then(() => {
        assert.deepStrictEqual(actualErrorAttempts, expectedErrorAttempts);
      });
    });